pub struct InodeTracker { /* private fields */ }Expand description
Tracks physical identities already counted during one scan. Hard-link counts are mutable hints, not safe eviction criteria. Retain observed multi-link identities until the scan ends. Following directory symlinks also requires tracking single-link files reached through aliases.
Implementations§
Source§impl InodeTracker
impl InodeTracker
Sourcepub fn track(&mut self, info: InodeInfo, nlink: u64) -> bool
pub fn track(&mut self, info: InodeInfo, nlink: u64) -> bool
Return true only when this identity should contribute physical size. A previously seen identity remains suppressed even if its link count subsequently falls to one. This is best-effort accounting, not a snapshot guarantee against inode reuse or concurrent mutation.
Trait Implementations§
Source§impl Debug for InodeTracker
impl Debug for InodeTracker
Auto Trait Implementations§
impl Freeze for InodeTracker
impl RefUnwindSafe for InodeTracker
impl Send for InodeTracker
impl Sync for InodeTracker
impl Unpin for InodeTracker
impl UnsafeUnpin for InodeTracker
impl UnwindSafe for InodeTracker
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
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