pub struct VFS { /* private fields */ }Methods from Deref<Target = Vfs>§
pub fn init_root(&self, root: Arc<dyn Inode>)
pub fn register_fs(&self, fs: Arc<dyn FileSystem>)
pub fn mount( &self, device_str: Option<&str>, mount_point: &str, fs_type: &str, args: Option<&[&str]>, ) -> Result<(), VfsError>
pub fn lookup(&self, path: &str) -> Result<Arc<dyn Inode>, VfsError>
pub fn open(&self, path: &str) -> Result<Arc<File>, VfsError>
pub fn create_file(&self, path: &str) -> Result<Arc<dyn Inode>, VfsError>
pub fn create_dir(&self, path: &str) -> Result<Arc<dyn Inode>, VfsError>
pub fn create_symlink( &self, target_path: &str, link_path: &str, ) -> Result<Arc<dyn Inode>, VfsError>
pub fn create_device_node( &self, path: &str, major: u16, minor: u16, device_type: DeviceType, ) -> Result<Arc<dyn Inode>, VfsError>
pub fn remove(&self, path: &str) -> Result<(), VfsError>
pub fn read_dir(&self, path: &str) -> Result<Vec<String>, VfsError>
pub fn rename(&self, old_path: &str, new_path: &str) -> Result<(), VfsError>
pub fn walk(&self, start_path: &str) -> Result<Vec<WalkEntry>, VfsError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VFS
impl RefUnwindSafe for VFS
impl Send for VFS
impl Sync for VFS
impl Unpin for VFS
impl UnwindSafe for VFS
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more