FilesystemOps

Trait FilesystemOps 

Source
pub trait FilesystemOps: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn root_dir(&self) -> DirEntry;
    fn stat(&self) -> VfsResult<StatFs>;

    // Provided method
    fn flush(&self) -> VfsResult<()> { ... }
}
Expand description

Trait for filesystem operations

Required Methods§

Source

fn name(&self) -> &str

Gets the name of the filesystem

Source

fn root_dir(&self) -> DirEntry

Gets the root directory entry of the filesystem

Source

fn stat(&self) -> VfsResult<StatFs>

Returns statistics about the filesystem

Provided Methods§

Source

fn flush(&self) -> VfsResult<()>

Flushes the filesystem, ensuring all data is written to disk

Implementors§