pub enum MissReason {
NotFound,
Expired,
Invalidated,
}Expand description
Why a CacheMissEvent fired.
Variants§
NotFound
Key was not present in any tier.
Expired
Key was present but the entry’s TTL had elapsed.
Invalidated
Key was explicitly invalidated via crate::resolver::Resolver::invalidate
(per-key) or one of the bulk APIs
(crate::resolver::Resolver::invalidate_all,
crate::resolver::Resolver::invalidate_by_slug,
crate::resolver::Resolver::invalidate_by_namespace).
Per-key invalidations report Invalidated for the next miss on that
exact key; bulk invalidations report Invalidated for the very next
miss on any key and then revert to NotFound / Expired reasoning
(the resolver doesn’t enumerate every just-evicted key — see the
field-level docs on Resolver::recently_invalidated for the
rationale).
Trait Implementations§
Source§impl Clone for MissReason
impl Clone for MissReason
Source§fn clone(&self) -> MissReason
fn clone(&self) -> MissReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MissReason
impl Debug for MissReason
Source§impl PartialEq for MissReason
impl PartialEq for MissReason
impl Copy for MissReason
impl Eq for MissReason
impl StructuralPartialEq for MissReason
Auto Trait Implementations§
impl Freeze for MissReason
impl RefUnwindSafe for MissReason
impl Send for MissReason
impl Sync for MissReason
impl Unpin for MissReason
impl UnsafeUnpin for MissReason
impl UnwindSafe for MissReason
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§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.