Struct simply_fuse::basic::INodeTable [−][src]
pub struct INodeTable<F> { /* fields omitted */ }
Expand description
A generic INodeTable which allows indexing by paths and inodes
Maps F
as a “File” type
Implementations
pub fn push_entry<E: IntoINodeEntry<F>>(
&mut self,
parent: INode,
name: OsString,
entry: E
) -> Option<INode>
Looks up a path. Will function with or without a leading slash
let mut tbl = INodeTable::<()>::default();
let test_dir_inode = tbl.push_entry(ROOT_INODE, "example directory".into(),
Directory::default()).unwrap();
let root = tbl.lookup("/").unwrap();
let test_dir = tbl.lookup("example directory").unwrap();
assert_eq!(root.0, ROOT_INODE);
assert_eq!(test_dir.0, test_dir_inode);
See lookup
for details
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for INodeTable<F> where
F: RefUnwindSafe,
impl<F> Send for INodeTable<F> where
F: Send,
impl<F> Sync for INodeTable<F> where
F: Sync,
impl<F> Unpin for INodeTable<F> where
F: Unpin,
impl<F> UnwindSafe for INodeTable<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more