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§
sourcefn root_dir(&self) -> VfsNodeRef
fn root_dir(&self) -> VfsNodeRef
Get the root directory of the filesystem.
Provided Methods§
sourcefn mount(&self, _path: &str, _mount_point: VfsNodeRef) -> VfsResult
fn mount(&self, _path: &str, _mount_point: VfsNodeRef) -> VfsResult
Do something when the filesystem is mounted.
sourcefn statfs(&self) -> VfsResult<FileSystemInfo>
fn statfs(&self) -> VfsResult<FileSystemInfo>
Get the attributes of the filesystem.