pub struct DirSizeBreakdown {
pub freed_bytes: u64,
pub shared_bytes: u64,
}Expand description
A directory’s size split by what deleting it would actually free.
Fields§
§freed_bytes: u64Bytes remove_dir_all gives back to the disk.
Bytes that survive the deletion because a hardlink outside the directory — for pnpm and bun, the global store — still points at them.
Trait Implementations§
Source§impl Clone for DirSizeBreakdown
impl Clone for DirSizeBreakdown
Source§fn clone(&self) -> DirSizeBreakdown
fn clone(&self) -> DirSizeBreakdown
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DirSizeBreakdown
Source§impl Debug for DirSizeBreakdown
impl Debug for DirSizeBreakdown
Source§impl Default for DirSizeBreakdown
impl Default for DirSizeBreakdown
Source§fn default() -> DirSizeBreakdown
fn default() -> DirSizeBreakdown
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirSizeBreakdown
impl RefUnwindSafe for DirSizeBreakdown
impl Send for DirSizeBreakdown
impl Sync for DirSizeBreakdown
impl Unpin for DirSizeBreakdown
impl UnsafeUnpin for DirSizeBreakdown
impl UnwindSafe for DirSizeBreakdown
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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