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

Get the inode value for this node

Get the filename of this node

Get the permissions of this node

Provided methods

Try to get this node as a FsRoot trait object reference

Will always return None if this node is not the root of a filesystem.

Try to get this node as a FsDirectory trait object reference

Will always return None if this node is a file.

Try to get this node as a FsFile trait object reference

Will always return None if this node is a directory.

Implementors