pub enum ValueExists {
Yes(Option<CacheValue>),
No,
}Expand description
Cache entry can be in three states:
- Does not exists, a given key was never inserted in the cache: ValueExists::No
- Exists but the value is empty. ValueExists::Yes(None)
- Exists and contains a value: ValueExists::Yes(Some(value))
Variants§
Yes(Option<CacheValue>)
No
Auto Trait Implementations§
impl Freeze for ValueExists
impl RefUnwindSafe for ValueExists
impl Send for ValueExists
impl Sync for ValueExists
impl Unpin for ValueExists
impl UnwindSafe for ValueExists
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