pub struct TmpFSDriver;
Expand description
TmpFS driver for creating TmpFS instances
Implementations§
Source§impl TmpFSDriver
impl TmpFSDriver
Sourcepub fn create_with_limit(&self, max_memory: usize) -> Box<dyn VirtualFileSystem>
pub fn create_with_limit(&self, max_memory: usize) -> Box<dyn VirtualFileSystem>
Create a new TmpFS with specified memory limit
Sourcepub fn create_unlimited(&self) -> Box<dyn VirtualFileSystem>
pub fn create_unlimited(&self) -> Box<dyn VirtualFileSystem>
Create a new TmpFS with unlimited memory
Trait Implementations§
Source§impl FileSystemDriver for TmpFSDriver
impl FileSystemDriver for TmpFSDriver
Source§fn filesystem_type(&self) -> FileSystemType
fn filesystem_type(&self) -> FileSystemType
Get the type of the file system
Source§fn create_from_block(
&self,
_block_device: Box<dyn BlockDevice>,
_block_size: usize,
) -> Result<Box<dyn VirtualFileSystem>>
fn create_from_block( &self, _block_device: Box<dyn BlockDevice>, _block_size: usize, ) -> Result<Box<dyn VirtualFileSystem>>
Create a file system from a block device Read more
Source§fn create_from_memory(
&self,
_memory_area: &MemoryArea,
) -> Result<Box<dyn VirtualFileSystem>>
fn create_from_memory( &self, _memory_area: &MemoryArea, ) -> Result<Box<dyn VirtualFileSystem>>
Create a file system from a memory area Read more
Source§fn create_with_params(
&self,
params: &dyn FileSystemParams,
) -> Result<Box<dyn VirtualFileSystem>>
fn create_with_params( &self, params: &dyn FileSystemParams, ) -> Result<Box<dyn VirtualFileSystem>>
Create a file system with structured parameters Read more