pub enum PurgeOutcome {
NotFound,
Purged(Option<CacheEntryId>),
Expired,
}Expand description
Outcome of a successful Storage::purge or Storage::expire call.
Variants§
NotFound
Storage did not find the target entry.
Purged(Option<CacheEntryId>)
Storage removed an entry, with the ID selected for an active target, if any.
Exact targets already contain the complete identity and need not repeat their ID here.
Expired
Storage kept the entry and marked it stale.
Only Storage::expire returns this. The entry is still stored, so the eviction manager
keeps tracking it.
Trait Implementations§
Source§impl Clone for PurgeOutcome
impl Clone for PurgeOutcome
Source§fn clone(&self) -> PurgeOutcome
fn clone(&self) -> PurgeOutcome
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 PurgeOutcome
Source§impl Debug for PurgeOutcome
impl Debug for PurgeOutcome
impl Eq for PurgeOutcome
Source§impl PartialEq for PurgeOutcome
impl PartialEq for PurgeOutcome
impl StructuralPartialEq for PurgeOutcome
Auto Trait Implementations§
impl Freeze for PurgeOutcome
impl RefUnwindSafe for PurgeOutcome
impl Send for PurgeOutcome
impl Sync for PurgeOutcome
impl Unpin for PurgeOutcome
impl UnsafeUnpin for PurgeOutcome
impl UnwindSafe for PurgeOutcome
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,
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<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.