pub enum LocalRead {
Absent,
Expired(LocalEntry),
Live(StoredValue),
}Expand description
The outcome of one LocalStore::get.
Removed entries travel back to the cache instead of dropping inside the store, because a value’s destructor may call back into the cache and the store runs under the cache’s lock.
Variants§
Absent
No entry under the key.
Expired(LocalEntry)
The entry had expired and was removed.
Live(StoredValue)
A live entry, promoted.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LocalRead
impl !UnwindSafe for LocalRead
impl Freeze for LocalRead
impl Send for LocalRead
impl Sync for LocalRead
impl Unpin for LocalRead
impl UnsafeUnpin for LocalRead
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