pub enum CacheResult {
Hit(DataSource),
NegativeHit,
Miss,
}Expand description
Result of a cache lookup
Variants§
Hit(DataSource)
Data found in cache
NegativeHit
Key was previously looked up and not found
Miss
Key not in cache
Trait Implementations§
Source§impl Clone for CacheResult
impl Clone for CacheResult
Source§fn clone(&self) -> CacheResult
fn clone(&self) -> CacheResult
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 moreAuto Trait Implementations§
impl Freeze for CacheResult
impl RefUnwindSafe for CacheResult
impl Send for CacheResult
impl Sync for CacheResult
impl Unpin for CacheResult
impl UnsafeUnpin for CacheResult
impl UnwindSafe for CacheResult
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