pub enum Duplicate {
Yes,
No,
}Available on crate feature
cache only.Expand description
Outcome of a cache reservation call.
Returned by TtlSet::reserve to signal whether the key was newly
inserted (No, caller may proceed) or already present (Yes, caller
must abort).
Variants§
Yes
Key already present in the cache; caller should reject the request.
No
Key was newly inserted; caller may proceed.
Trait Implementations§
impl Copy for Duplicate
impl Eq for Duplicate
impl StructuralPartialEq for Duplicate
Auto Trait Implementations§
impl Freeze for Duplicate
impl RefUnwindSafe for Duplicate
impl Send for Duplicate
impl Sync for Duplicate
impl Unpin for Duplicate
impl UnsafeUnpin for Duplicate
impl UnwindSafe for Duplicate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.