pub enum CacheDecode<T> {
Hit(T),
Miss(CacheMissReason),
}Expand description
Outcome of deserializing a cache entry.
Miss means the bytes could not be confidently decoded into T; the
CacheMissReason says why. A backend treats any Miss exactly like a key
that was never present: recompute via the loader.
Variants§
Hit(T)
Miss(CacheMissReason)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for CacheDecode<T>where
T: Freeze,
impl<T> RefUnwindSafe for CacheDecode<T>where
T: RefUnwindSafe,
impl<T> Send for CacheDecode<T>where
T: Send,
impl<T> Sync for CacheDecode<T>where
T: Sync,
impl<T> Unpin for CacheDecode<T>where
T: Unpin,
impl<T> UnsafeUnpin for CacheDecode<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CacheDecode<T>where
T: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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