pub enum PruneOutcome {
Completed(PruneReport),
Busy,
}Expand description
Outcome of nonblocking cache pruning.
Variants§
Completed(PruneReport)
This process completed a prune pass.
Busy
Another process currently owns cache maintenance.
Implementations§
Source§impl PruneOutcome
impl PruneOutcome
Sourcepub const fn is_busy(&self) -> bool
pub const fn is_busy(&self) -> bool
Returns whether another process currently owns cache maintenance.
Sourcepub const fn into_report(self) -> Option<PruneReport>
pub const fn into_report(self) -> Option<PruneReport>
Consumes the outcome and returns the report when pruning completed.
Trait Implementations§
Source§impl Clone for PruneOutcome
impl Clone for PruneOutcome
Source§fn clone(&self) -> PruneOutcome
fn clone(&self) -> PruneOutcome
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 PruneOutcome
Source§impl Debug for PruneOutcome
impl Debug for PruneOutcome
impl Eq for PruneOutcome
Source§impl PartialEq for PruneOutcome
impl PartialEq for PruneOutcome
Source§fn eq(&self, other: &PruneOutcome) -> bool
fn eq(&self, other: &PruneOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PruneOutcome
Auto Trait Implementations§
impl Freeze for PruneOutcome
impl RefUnwindSafe for PruneOutcome
impl Send for PruneOutcome
impl Sync for PruneOutcome
impl Unpin for PruneOutcome
impl UnsafeUnpin for PruneOutcome
impl UnwindSafe for PruneOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more