pub trait FilesystemConfig: Send + Sync {
type Filesystem: Filesystem;
// Required methods
fn start_filesystem<'life0, 'life1, 'async_trait>(
&'life0 self,
block_device_factory: &'life1 dyn BlockDeviceFactory,
) -> Pin<Box<dyn Future<Output = Self::Filesystem> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn name(&self) -> String;
}
Expand description
A trait for creating Filesystem
s.
Required Associated Types§
Sourcetype Filesystem: Filesystem
type Filesystem: Filesystem
The concrete type of the filesystem started by start_filesystem
. It must at least
implement the Filesystem
trait.
Required Methods§
Sourcefn start_filesystem<'life0, 'life1, 'async_trait>(
&'life0 self,
block_device_factory: &'life1 dyn BlockDeviceFactory,
) -> Pin<Box<dyn Future<Output = Self::Filesystem> + 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 = Self::Filesystem> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Starts an instance of the filesystem.