Trait slos_filesystem::FsNode [−][src]
pub trait FsNode: Debug {
fn inode(&self) -> usize;
fn name(&self) -> &str;
fn permissions(&self) -> u16;
fn try_root(&mut self) -> Option<&mut dyn FsRoot> { ... }
fn try_directory(&mut self) -> Option<&mut dyn FsDirectory> { ... }
fn try_file(&mut self) -> Option<&mut dyn FsFile> { ... }
}
Expand description
Filesystem node
Required methods
fn permissions(&self) -> u16
fn permissions(&self) -> u16
Get the permissions of this node
Provided methods
fn try_directory(&mut self) -> Option<&mut dyn FsDirectory>
fn try_directory(&mut self) -> Option<&mut dyn FsDirectory>
Try to get this node as a FsDirectory
trait object reference
Will always return None
if this node is a file.