pub struct InodeLedger { /* private fields */ }Implementations§
Source§impl InodeLedger
impl InodeLedger
pub fn new() -> Self
Sourcepub fn admit(&mut self, s: &FileSizing) -> bool
pub fn admit(&mut self, s: &FileSizing) -> bool
Should this file’s bytes be added to the running total?
false for a second or later link to an inode already counted.
Sourcepub fn pinned_outside(&self) -> PinnedOutside
pub fn pinned_outside(&self) -> PinnedOutside
Inodes counted that still have names outside the measured set. Their bytes were included in the total but will NOT be freed by deleting the set — report this rather than over-promising.
pub fn distinct_inodes(&self) -> usize
Trait Implementations§
Source§impl Debug for InodeLedger
impl Debug for InodeLedger
Auto Trait Implementations§
impl Freeze for InodeLedger
impl RefUnwindSafe for InodeLedger
impl Send for InodeLedger
impl Sync for InodeLedger
impl Unpin for InodeLedger
impl UnsafeUnpin for InodeLedger
impl UnwindSafe for InodeLedger
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