pub enum Clear {
Command(&'static str, &'static [&'static str]),
Directory,
Manual {
why: &'static str,
},
}Expand description
How one cache is emptied.
Variants§
Command(&'static str, &'static [&'static str])
The manager’s own subcommand, as (program, args). Preferred wherever one
exists — pnpm store prune and uv cache prune keep what is still referenced,
which no directory delete can work out.
Directory
Delete the directory this command resolved and sized. Only for the managers that ship nothing equivalent.
Manual
Report it, print the command, and refuse to run it. For the one store that is not
a cache: see the maven entry for the reason a deletion here cannot be proven
recoverable. why is printed to the user in place of doing it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clear
impl RefUnwindSafe for Clear
impl Send for Clear
impl Sync for Clear
impl Unpin for Clear
impl UnsafeUnpin for Clear
impl UnwindSafe for Clear
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