pub struct MountedFilesystemInstance { /* private fields */ }
Expand description
A Filesystem
instance for a filesystem that is already present in the process’s namespace.
Implementations§
Trait Implementations§
Source§impl Filesystem for MountedFilesystemInstance
impl Filesystem for MountedFilesystemInstance
Source§fn shutdown<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
fn shutdown<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
Cleans up the filesystem after a benchmark has run. Filesystem is unusable after this call.
Source§fn benchmark_dir(&self) -> &Path
fn benchmark_dir(&self) -> &Path
Path to where the filesystem is located in the current process’s namespace. All benchmark
operations should happen within this directory.
Auto Trait Implementations§
impl Freeze for MountedFilesystemInstance
impl RefUnwindSafe for MountedFilesystemInstance
impl Send for MountedFilesystemInstance
impl Sync for MountedFilesystemInstance
impl Unpin for MountedFilesystemInstance
impl UnwindSafe for MountedFilesystemInstance
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> BoxedFilesystem for Twhere
T: Filesystem,
impl<T> BoxedFilesystem for Twhere
T: Filesystem,
Source§fn shutdown_boxed<'a>(
self: Box<T>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>where
T: 'a,
fn shutdown_boxed<'a>(
self: Box<T>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>where
T: 'a,
Filesystem::shutdown
takes the filesystem by value which doesn’t work for Box<&dyn Filesystem>
because the filesystem type isn’t known at compile time. Taking the filesystem
as Box<Self>
works and the type of the filesystem is now known so the
Filesystem::shutdown
method can be called.