Trait axfs_vfs::VfsOps

source ·
pub trait VfsOps: Send + Sync {
    // Required method
    fn root_dir(&self) -> VfsNodeRef;

    // Provided methods
    fn mount(&self, _path: &str, _mount_point: VfsNodeRef) -> VfsResult { ... }
    fn umount(&self) -> VfsResult { ... }
    fn format(&self) -> VfsResult { ... }
    fn statfs(&self) -> VfsResult<FileSystemInfo> { ... }
}
Expand description

Filesystem operations.

Required Methods§

source

fn root_dir(&self) -> VfsNodeRef

Get the root directory of the filesystem.

Provided Methods§

source

fn mount(&self, _path: &str, _mount_point: VfsNodeRef) -> VfsResult

Do something when the filesystem is mounted.

source

fn umount(&self) -> VfsResult

Do something when the filesystem is unmounted.

source

fn format(&self) -> VfsResult

Format the filesystem.

source

fn statfs(&self) -> VfsResult<FileSystemInfo>

Get the attributes of the filesystem.

Implementors§