pub enum TimedEntry<'a, Key: 'a, Value: 'a> {
Valid(&'a Key, &'a Value),
Expired(Key, Value),
}
Expand description
Entry produced by NotifyIter
that might be still valid or expired.
Variants§
Valid(&'a Key, &'a Value)
Entry has not yet expired.
Expired(Key, Value)
Entry got expired and was evicted from the cache.
Auto Trait Implementations§
impl<'a, Key, Value> Freeze for TimedEntry<'a, Key, Value>
impl<'a, Key, Value> RefUnwindSafe for TimedEntry<'a, Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<'a, Key, Value> Send for TimedEntry<'a, Key, Value>
impl<'a, Key, Value> Sync for TimedEntry<'a, Key, Value>
impl<'a, Key, Value> Unpin for TimedEntry<'a, Key, Value>
impl<'a, Key, Value> UnwindSafe for TimedEntry<'a, Key, Value>
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