pub struct ItemLookup<V: Debug> {
pub item: V,
pub is_fresh: bool,
pub expiration: Instant,
}
Fields§
§item: V
A copy of the item
is_fresh: bool
If true, the get_or_try_insert operation populated the entry; the operation was a cache miss
expiration: Instant
The instant at which this entry will expire
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for ItemLookup<V>where
V: Freeze,
impl<V> RefUnwindSafe for ItemLookup<V>where
V: RefUnwindSafe,
impl<V> Send for ItemLookup<V>where
V: Send,
impl<V> Sync for ItemLookup<V>where
V: Sync,
impl<V> Unpin for ItemLookup<V>where
V: Unpin,
impl<V> UnwindSafe for ItemLookup<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