Struct axfs_ramfs::RamFileSystem
source · pub struct RamFileSystem { /* private fields */ }
Expand description
A RAM filesystem that implements axfs_vfs::VfsOps
.
Implementations§
source§impl RamFileSystem
impl RamFileSystem
sourcepub fn root_dir_node(&self) -> Arc<DirNode>
pub fn root_dir_node(&self) -> Arc<DirNode>
Returns the root directory node in Arc<DirNode>
.
Trait Implementations§
source§impl Default for RamFileSystem
impl Default for RamFileSystem
source§impl VfsOps for RamFileSystem
impl VfsOps for RamFileSystem
source§fn mount(&self, _path: &str, mount_point: VfsNodeRef) -> VfsResult
fn mount(&self, _path: &str, mount_point: VfsNodeRef) -> VfsResult
Do something when the filesystem is mounted.
source§fn root_dir(&self) -> VfsNodeRef
fn root_dir(&self) -> VfsNodeRef
Get the root directory of the filesystem.
Auto Trait Implementations§
impl !RefUnwindSafe for RamFileSystem
impl Send for RamFileSystem
impl Sync for RamFileSystem
impl Unpin for RamFileSystem
impl !UnwindSafe for RamFileSystem
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