pub struct ClearOutcome {
pub manager: &'static str,
pub kind: &'static str,
pub path: PathBuf,
pub before: u64,
pub after: u64,
pub problem: Option<String>,
}Expand description
What happened to one cache.
Fields§
§manager: &'static strThe package manager that owned it.
kind: &'static strWhich of that manager’s caches this was.
path: PathBufWhere it is.
before: u64Size before, as this command measured it.
after: u64Size after, measured again rather than assumed. pnpm store prune and uv cache prune deliberately keep what is still referenced, so subtracting is the only
honest way to say what actually went.
problem: Option<String>None when it worked; otherwise why it did not, phrased for a human.
Implementations§
Auto Trait Implementations§
impl Freeze for ClearOutcome
impl RefUnwindSafe for ClearOutcome
impl Send for ClearOutcome
impl Sync for ClearOutcome
impl Unpin for ClearOutcome
impl UnsafeUnpin for ClearOutcome
impl UnwindSafe for ClearOutcome
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