pub enum CacheStatus {
Hit,
Miss,
Expired,
LockHit,
}Expand description
CacheStatus indicates the response type for a query.
Variants§
Hit
The key was found in cache
Miss
The key was not found.
Expired
The key was found but it was expired.
LockHit
The key was not initially found but was found after awaiting a lock.
Implementations§
source§impl CacheStatus
impl CacheStatus
sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Return the string representation for CacheStatus.
Trait Implementations§
source§impl Debug for CacheStatus
impl Debug for CacheStatus
source§impl PartialEq for CacheStatus
impl PartialEq for CacheStatus
source§fn eq(&self, other: &CacheStatus) -> bool
fn eq(&self, other: &CacheStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for CacheStatus
impl StructuralPartialEq for CacheStatus
Auto Trait Implementations§
impl RefUnwindSafe for CacheStatus
impl Send for CacheStatus
impl Sync for CacheStatus
impl Unpin for CacheStatus
impl UnwindSafe for CacheStatus
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