pub enum CleanReport {
CacheRemoved,
NoLockfile,
StaleRemoved {
removed: usize,
},
}Expand description
Result of clean.
Variants§
CacheRemoved
all = true: the whole cache directory was removed.
NoLockfile
No lockfile exists, so nothing was ever installed; nothing removed.
StaleRemoved
Stale-only sweep ran (or all on an absent cache); removed is the
number of unreferenced SHA directories deleted (0 = nothing to do).
Trait Implementations§
Source§impl Clone for CleanReport
impl Clone for CleanReport
Source§fn clone(&self) -> CleanReport
fn clone(&self) -> CleanReport
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 CleanReport
Source§impl Debug for CleanReport
impl Debug for CleanReport
impl Eq for CleanReport
Source§impl PartialEq for CleanReport
impl PartialEq for CleanReport
impl StructuralPartialEq for CleanReport
Auto Trait Implementations§
impl Freeze for CleanReport
impl RefUnwindSafe for CleanReport
impl Send for CleanReport
impl Sync for CleanReport
impl Unpin for CleanReport
impl UnsafeUnpin for CleanReport
impl UnwindSafe for CleanReport
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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