pub struct Removal {
pub removed: Vec<Removed>,
pub kept: Vec<Refused>,
pub failures: Vec<Failure>,
}Expand description
What a removal did.
Fields§
§removed: Vec<Removed>Targets something was removed from.
kept: Vec<Refused>Directories left in place: the plan’s refusals, plus every subtree a sweep declined to enter.
failures: Vec<Failure>Everything that failed.
Implementations§
Source§impl Removal
impl Removal
Sourcepub fn bytes_freed(&self) -> u64
pub fn bytes_freed(&self) -> u64
Allocated bytes given back.
Sourcepub fn entries_removed(&self) -> u64
pub fn entries_removed(&self) -> u64
How many files, directories and links were unlinked.
Sourcepub fn is_clean(&self) -> bool
pub fn is_clean(&self) -> bool
Whether everything the plan asked for happened. A refusal is not a failure — it is
the safety model working — so this asks only about Removal::failures.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Removal
impl RefUnwindSafe for Removal
impl Send for Removal
impl Sync for Removal
impl Unpin for Removal
impl UnsafeUnpin for Removal
impl UnwindSafe for Removal
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