Skip to main content

FileSystem

Trait FileSystem 

Source
pub trait FileSystem: Send + Sync {
    // Required methods
    fn mount(
        &self,
        device: Option<Arc<Device>>,
        args: Option<&[&str]>,
    ) -> Result<Arc<dyn Inode>, VfsError>;
    fn fs_type(&self) -> &'static str;
}

Required Methods§

Source

fn mount( &self, device: Option<Arc<Device>>, args: Option<&[&str]>, ) -> Result<Arc<dyn Inode>, VfsError>

Source

fn fs_type(&self) -> &'static str

Implementors§