pub struct Directory<FS: FileSystem + 'static>(Directory, PageCache<FS>);Expand description
An overlay on the Directory.
Tuple Fields§
§0: Directory§1: PageCache<FS>Trait Implementations§
Source§impl<FS: FileSystem> Directory for Directory<FS>
impl<FS: FileSystem> Directory for Directory<FS>
Source§fn ino(&self) -> InodeNumber
fn ino(&self) -> InodeNumber
Returns the inode number of the directory.
Source§fn link_count(&self) -> usize
fn link_count(&self) -> usize
Returns the link count of the directory.
Source§fn open_entry(&self, entry: &str) -> Result<File, KernelError>
fn open_entry(&self, entry: &str) -> Result<File, KernelError>
Opens an entry by name. Read more
Source§fn create_entry(&self, entry: &str, is_dir: bool) -> Result<File, KernelError>
fn create_entry(&self, entry: &str, is_dir: bool) -> Result<File, KernelError>
Create an entry by name. Read more
Source§fn unlink_entry(&self, entry: &str) -> Result<(), KernelError>
fn unlink_entry(&self, entry: &str) -> Result<(), KernelError>
Unlinks a directory entry by name. Read more
Source§fn read_dir(&self) -> Result<Vec<(InodeNumber, String)>, KernelError>
fn read_dir(&self) -> Result<Vec<(InodeNumber, String)>, KernelError>
Reads the contents of the directory. Read more
Source§fn removed(&self) -> Result<&AtomicBool, KernelError>
fn removed(&self) -> Result<&AtomicBool, KernelError>
Returns a reference of
AtomicBool which contains whether
directory is removed. Read more