pub struct PrunePlan {
pub files: Vec<(PathBuf, u64)>,
pub freed: u64,
pub remaining: u64,
}Expand description
What plan_prune would remove, without removing it.
Oldest-first, the same order prune_dir deletes in — a caller previewing
the plan (magi cache prune --dry-run) must see exactly what an immediate
prune_dir call would do, not an approximation of it.
Fields§
§files: Vec<(PathBuf, u64)>Files this plan would delete, oldest-first, paired with their size.
freed: u64Bytes this plan would free, assuming every listed file is removable.
remaining: u64Bytes that would remain under the directory once the plan applies cleanly.
Trait Implementations§
impl Eq for PrunePlan
impl StructuralPartialEq for PrunePlan
Auto Trait Implementations§
impl Freeze for PrunePlan
impl RefUnwindSafe for PrunePlan
impl Send for PrunePlan
impl Sync for PrunePlan
impl Unpin for PrunePlan
impl UnsafeUnpin for PrunePlan
impl UnwindSafe for PrunePlan
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§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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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