pub struct AdaptiveCacheEntry<V> {
pub value: V,
pub priority: CachePriority,
pub access_count: u64,
pub last_access: u64,
pub insert_time: u64,
}Expand description
A cache entry with adaptive eviction support.
Fields§
§value: V§priority: CachePriority§access_count: u64§last_access: u64§insert_time: u64Implementations§
Source§impl<V> AdaptiveCacheEntry<V>
impl<V> AdaptiveCacheEntry<V>
Auto Trait Implementations§
impl<V> Freeze for AdaptiveCacheEntry<V>where
V: Freeze,
impl<V> RefUnwindSafe for AdaptiveCacheEntry<V>where
V: RefUnwindSafe,
impl<V> Send for AdaptiveCacheEntry<V>where
V: Send,
impl<V> Sync for AdaptiveCacheEntry<V>where
V: Sync,
impl<V> Unpin for AdaptiveCacheEntry<V>where
V: Unpin,
impl<V> UnsafeUnpin for AdaptiveCacheEntry<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for AdaptiveCacheEntry<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