Trait FileSystem

Source
pub trait FileSystem: Send + Sync {
    // Required methods
    fn mount(&mut self, mount_point: &str) -> Result<()>;
    fn unmount(&mut self) -> Result<()>;
    fn name(&self) -> &str;
}
Expand description

Trait defining basic file system operations

Required Methods§

Source

fn mount(&mut self, mount_point: &str) -> Result<()>

Mount operation

Source

fn unmount(&mut self) -> Result<()>

Unmount operation

Source

fn name(&self) -> &str

Get the name of the file system

Implementors§