pub(crate) struct AsyncLruCacheEntry<V> {
value: Option<Arc<V>>,
last_used: AtomicUsize,
}
Expand description
Cache entry structure, wrapping the cached object.
Fields§
§value: Option<Arc<V>>
Cached object.
Always set during operation, only cleared when trying to unwrap the Arc
on eviction.
last_used: AtomicUsize
When this entry was last accessed.
Implementations§
Auto Trait Implementations§
impl<V> !Freeze for AsyncLruCacheEntry<V>
impl<V> RefUnwindSafe for AsyncLruCacheEntry<V>where
V: RefUnwindSafe,
impl<V> Send for AsyncLruCacheEntry<V>
impl<V> Sync for AsyncLruCacheEntry<V>
impl<V> Unpin for AsyncLruCacheEntry<V>
impl<V> UnwindSafe for AsyncLruCacheEntry<V>where
V: RefUnwindSafe,
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