pub struct CacheEntry<K, V> {
pub key: K,
pub value: V,
}Expand description
One cache entry.
Fields§
§key: KApplication-defined key.
value: VOwned cached value.
Trait Implementations§
Source§impl<K: Clone, V: Clone> Clone for CacheEntry<K, V>
impl<K: Clone, V: Clone> Clone for CacheEntry<K, V>
Source§fn clone(&self) -> CacheEntry<K, V>
fn clone(&self) -> CacheEntry<K, 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 moreimpl<K: Eq, V: Eq> Eq for CacheEntry<K, V>
impl<K, V> StructuralPartialEq for CacheEntry<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for CacheEntry<K, V>
impl<K, V> RefUnwindSafe for CacheEntry<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for CacheEntry<K, V>
impl<K, V> Sync for CacheEntry<K, V>
impl<K, V> Unpin for CacheEntry<K, V>
impl<K, V> UnsafeUnpin for CacheEntry<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for CacheEntry<K, V>where
K: UnwindSafe,
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