pub enum CacheLookup<T> {
Fresh(T),
Stale(T),
Miss,
}Expand description
Result of looking up a cache entry without hiding expired rows.
Variants§
Fresh(T)
A present, unexpired cache row.
Stale(T)
A present, expired cache row.
Miss
No cache row exists for the key.
Trait Implementations§
Source§impl<T: Clone> Clone for CacheLookup<T>
impl<T: Clone> Clone for CacheLookup<T>
Source§fn clone(&self) -> CacheLookup<T>
fn clone(&self) -> CacheLookup<T>
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 moreSource§impl<T: Debug> Debug for CacheLookup<T>
impl<T: Debug> Debug for CacheLookup<T>
Source§impl<T: PartialEq> PartialEq for CacheLookup<T>
impl<T: PartialEq> PartialEq for CacheLookup<T>
Source§fn eq(&self, other: &CacheLookup<T>) -> bool
fn eq(&self, other: &CacheLookup<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Eq> Eq for CacheLookup<T>
impl<T> StructuralPartialEq for CacheLookup<T>
Auto Trait Implementations§
impl<T> Freeze for CacheLookup<T>where
T: Freeze,
impl<T> RefUnwindSafe for CacheLookup<T>where
T: RefUnwindSafe,
impl<T> Send for CacheLookup<T>where
T: Send,
impl<T> Sync for CacheLookup<T>where
T: Sync,
impl<T> Unpin for CacheLookup<T>where
T: Unpin,
impl<T> UnsafeUnpin for CacheLookup<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CacheLookup<T>where
T: UnwindSafe,
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