pub enum DeduplicatorOutcome<K, T> {
Delivered {
key: K,
evicted: Option<K>,
},
Duplicate {
key: K,
value: T,
},
}Expand description
Factual outcome of one keyed delivery attempt.
Variants§
Delivered
The key was new, the value was delivered, and retention was committed.
Duplicate
The key is retained, so ownership of the undelivered value is returned.
Trait Implementations§
impl<K: Eq, T: Eq> Eq for DeduplicatorOutcome<K, T>
impl<K, T> StructuralPartialEq for DeduplicatorOutcome<K, T>
Auto Trait Implementations§
impl<K, T> Freeze for DeduplicatorOutcome<K, T>
impl<K, T> RefUnwindSafe for DeduplicatorOutcome<K, T>where
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for DeduplicatorOutcome<K, T>
impl<K, T> Sync for DeduplicatorOutcome<K, T>
impl<K, T> Unpin for DeduplicatorOutcome<K, T>
impl<K, T> UnsafeUnpin for DeduplicatorOutcome<K, T>where
K: UnsafeUnpin,
T: UnsafeUnpin,
impl<K, T> UnwindSafe for DeduplicatorOutcome<K, T>where
K: UnwindSafe,
T: 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