pub struct KeyCacheEntry<V> {
pub value: V,
pub expiry: u64,
pub hits: u32,
}Expand description
A single cache entry with value and expiry frame.
Fields§
§value: V§expiry: u64§hits: u32Trait Implementations§
Source§impl<V: Clone> Clone for KeyCacheEntry<V>
impl<V: Clone> Clone for KeyCacheEntry<V>
Source§fn clone(&self) -> KeyCacheEntry<V>
fn clone(&self) -> KeyCacheEntry<V>
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<V> Freeze for KeyCacheEntry<V>where
V: Freeze,
impl<V> RefUnwindSafe for KeyCacheEntry<V>where
V: RefUnwindSafe,
impl<V> Send for KeyCacheEntry<V>where
V: Send,
impl<V> Sync for KeyCacheEntry<V>where
V: Sync,
impl<V> Unpin for KeyCacheEntry<V>where
V: Unpin,
impl<V> UnsafeUnpin for KeyCacheEntry<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for KeyCacheEntry<V>where
V: 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