pub struct MemFile { /* private fields */ }
Expand description
The struct that represents a file in memory that is backed by MappedPages
Implementations§
Trait Implementations§
source§impl ByteWriter for MemFile
impl ByteWriter for MemFile
source§impl File for MemFile
impl File for MemFile
source§fn as_mapping(&self) -> Result<&MappedPages, &'static str>
fn as_mapping(&self) -> Result<&MappedPages, &'static str>
Returns a view of this file as an immutable memory-mapped region.
source§impl FsNode for MemFile
impl FsNode for MemFile
source§fn get_parent_dir(&self) -> Option<DirRef>
fn get_parent_dir(&self) -> Option<DirRef>
Returns the parent directory of the current node.
source§fn set_parent_dir(&mut self, new_parent: WeakDirRef)
fn set_parent_dir(&mut self, new_parent: WeakDirRef)
Sets this node’s parent directory.
This is useful for ensuring correctness when inserting or removing
files or directories from their parent directory.
§fn get_absolute_path(&self) -> String
fn get_absolute_path(&self) -> String
Recursively gets the absolute pathname as a String
Auto Trait Implementations§
impl !RefUnwindSafe for MemFile
impl Send for MemFile
impl Sync for MemFile
impl Unpin for MemFile
impl !UnwindSafe for MemFile
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