pub struct Memfs;
Expand description
Config object for starting Memfs instances.
Trait Implementations§
Source§impl FilesystemConfig for Memfs
impl FilesystemConfig for Memfs
Source§type Filesystem = MemfsInstance
type Filesystem = MemfsInstance
The concrete type of the filesystem started by
start_filesystem
. It must at least
implement the Filesystem
trait.Source§fn start_filesystem<'life0, 'life1, 'async_trait>(
&'life0 self,
_block_device_factory: &'life1 dyn BlockDeviceFactory,
) -> Pin<Box<dyn Future<Output = MemfsInstance> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start_filesystem<'life0, 'life1, 'async_trait>(
&'life0 self,
_block_device_factory: &'life1 dyn BlockDeviceFactory,
) -> Pin<Box<dyn Future<Output = MemfsInstance> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Starts an instance of the filesystem.
Auto Trait Implementations§
impl Freeze for Memfs
impl RefUnwindSafe for Memfs
impl Send for Memfs
impl Sync for Memfs
impl Unpin for Memfs
impl UnwindSafe for Memfs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)