pub enum PressureOutcome {
Collected,
AtReserve,
NothingEligible,
WithinLimit,
}Expand description
How a shared-cache pressure pass that ran to completion ended, as its log line says it. None of them is an error: a pass that cannot make progress says so and the service’s next period tries again.
A pass is estimated-deficit collection: it measures free space once,
computes the deficit against the collection threshold, and removes that
many logical bytes oldest-first, bounded by pressure_limit. It does
not re-measure in a loop. Hard links and other writers mean the space
actually freed can be less (or more); the next pass measures again and
continues.
Variants§
Collected
Files were removed.
AtReserve
Nothing needed removing, because the cache is at or below the reserve it keeps while free space is below the collection threshold.
NothingEligible
The cache was over its limit but no file could be removed: none left, all of them protected by the reserve, or every removal failed.
WithinLimit
The cache was within its limit; nothing needed removing.
Implementations§
Trait Implementations§
Source§impl Clone for PressureOutcome
impl Clone for PressureOutcome
impl Copy for PressureOutcome
Source§impl Debug for PressureOutcome
impl Debug for PressureOutcome
impl Eq for PressureOutcome
Source§impl PartialEq for PressureOutcome
impl PartialEq for PressureOutcome
impl StructuralPartialEq for PressureOutcome
Auto Trait Implementations§
impl Forget for PressureOutcome
impl Freeze for PressureOutcome
impl Move for PressureOutcome
impl RefUnwindSafe for PressureOutcome
impl Send for PressureOutcome
impl Sync for PressureOutcome
impl Unpin for PressureOutcome
impl UnsafeUnpin for PressureOutcome
impl UnwindSafe for PressureOutcome
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
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
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> ⓘ
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> ⓘ
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