struct RamState {
inodes: BTreeMap<u64, RamInode>,
}Fields§
§inodes: BTreeMap<u64, RamInode>Implementations§
Source§impl RamState
impl RamState
Sourcefn current_ids() -> (u32, u32)
fn current_ids() -> (u32, u32)
Performs the current ids operation.
Sourcefn lookup(&self, path: &str) -> Option<u64>
fn lookup(&self, path: &str) -> Option<u64>
Resolve a relative path to its inode number.
An empty (or all-slash) path resolves to the root directory.
Sourcefn lookup_parent<'a>(&self, path: &'a str) -> Option<(u64, &'a str)>
fn lookup_parent<'a>(&self, path: &'a str) -> Option<(u64, &'a str)>
Return (parent_ino, final_component) for a path.
Returns None if the parent directory does not exist.
Sourcefn has_any_name_ref(&self, ino: u64) -> bool
fn has_any_name_ref(&self, ino: u64) -> bool
Returns whether any name ref is available.
Sourcefn link_count(&self, ino: u64) -> u32
fn link_count(&self, ino: u64) -> u32
Performs the link count operation.
Sourcefn dir_contains_ino(&self, ancestor_ino: u64, candidate_ino: u64) -> bool
fn dir_contains_ino(&self, ancestor_ino: u64, candidate_ino: u64) -> bool
Performs the dir contains ino operation.
Auto Trait Implementations§
impl Freeze for RamState
impl RefUnwindSafe for RamState
impl Send for RamState
impl Sync for RamState
impl Unpin for RamState
impl UnsafeUnpin for RamState
impl UnwindSafe for RamState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more