pub enum ScrubOutcome {
Completed(ScrubReport),
Busy,
}Expand description
Outcome of nonblocking cache scrubbing.
Variants§
Completed(ScrubReport)
This process completed a scrub pass.
Busy
Another process currently owns cache maintenance.
Implementations§
Source§impl ScrubOutcome
impl ScrubOutcome
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<ScrubReport>
pub const fn into_report(self) -> Option<ScrubReport>
Consumes the outcome and returns the report when scrubbing completed.
Trait Implementations§
Source§impl Clone for ScrubOutcome
impl Clone for ScrubOutcome
Source§fn clone(&self) -> ScrubOutcome
fn clone(&self) -> ScrubOutcome
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 ScrubOutcome
Source§impl Debug for ScrubOutcome
impl Debug for ScrubOutcome
impl Eq for ScrubOutcome
Source§impl PartialEq for ScrubOutcome
impl PartialEq for ScrubOutcome
Source§fn eq(&self, other: &ScrubOutcome) -> bool
fn eq(&self, other: &ScrubOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScrubOutcome
Auto Trait Implementations§
impl Freeze for ScrubOutcome
impl RefUnwindSafe for ScrubOutcome
impl Send for ScrubOutcome
impl Sync for ScrubOutcome
impl Unpin for ScrubOutcome
impl UnsafeUnpin for ScrubOutcome
impl UnwindSafe for ScrubOutcome
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