pub enum CacheTier {
Memory,
Persistent,
}Expand description
Cache tier the entry was served from on a CacheHitEvent.
Variants§
Memory
Tier-1 in-process cache (typically MemoryBackend).
Persistent
Tier-2 persistent cache (e.g., IndexedDbBackend in the browser).
Trait Implementations§
impl Copy for CacheTier
impl Eq for CacheTier
impl StructuralPartialEq for CacheTier
Auto Trait Implementations§
impl Freeze for CacheTier
impl RefUnwindSafe for CacheTier
impl Send for CacheTier
impl Sync for CacheTier
impl Unpin for CacheTier
impl UnsafeUnpin for CacheTier
impl UnwindSafe for CacheTier
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.