pub struct TaskFs {}
Expand description
The top level directory that includes a dynamically-generated list of all Task
s,
each comprising a TaskDir
.
This directory exists in the root directory.
Trait Implementations§
source§impl Directory for TaskFs
impl Directory for TaskFs
source§fn insert(
&mut self,
_node: FileOrDir
) -> Result<Option<FileOrDir>, &'static str>
fn insert( &mut self, _node: FileOrDir ) -> Result<Option<FileOrDir>, &'static str>
This function adds a newly created fs node (the argument) to the TASKS directory’s children map
source§fn get(&self, node: &str) -> Option<FileOrDir>
fn get(&self, node: &str) -> Option<FileOrDir>
Gets either the file or directory in this
Directory
on its name.source§fn remove(&mut self, _node: &FileOrDir) -> Option<FileOrDir>
fn remove(&mut self, _node: &FileOrDir) -> Option<FileOrDir>
Removes a file or directory from this directory and returns it if found.
Also, the returned node’s parent directory reference is cleared. Read more
source§impl FsNode for TaskFs
impl FsNode for TaskFs
source§fn get_absolute_path(&self) -> String
fn get_absolute_path(&self) -> String
Recursively gets the absolute pathname as a String
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.
Auto Trait Implementations§
impl RefUnwindSafe for TaskFs
impl Send for TaskFs
impl Sync for TaskFs
impl Unpin for TaskFs
impl UnwindSafe for TaskFs
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