pub enum InsertIfAbsentNoEvictResult {
Inserted,
Duplicate,
Full,
}Expand description
Result of attempting to insert a key into a non-evicting replay barrier.
Callers must distinguish a duplicate (a replay was blocked) from a full barrier (new traffic was refused to preserve previously recorded security state).
Variants§
Inserted
The previously unseen key was recorded.
Duplicate
The key was already present and still live.
Full
The barrier had no capacity for a new key.
Trait Implementations§
Source§impl Clone for InsertIfAbsentNoEvictResult
impl Clone for InsertIfAbsentNoEvictResult
Source§fn clone(&self) -> InsertIfAbsentNoEvictResult
fn clone(&self) -> InsertIfAbsentNoEvictResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InsertIfAbsentNoEvictResult
impl Debug for InsertIfAbsentNoEvictResult
Source§impl PartialEq for InsertIfAbsentNoEvictResult
impl PartialEq for InsertIfAbsentNoEvictResult
Source§fn eq(&self, other: &InsertIfAbsentNoEvictResult) -> bool
fn eq(&self, other: &InsertIfAbsentNoEvictResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InsertIfAbsentNoEvictResult
impl Eq for InsertIfAbsentNoEvictResult
impl StructuralPartialEq for InsertIfAbsentNoEvictResult
Auto Trait Implementations§
impl Freeze for InsertIfAbsentNoEvictResult
impl RefUnwindSafe for InsertIfAbsentNoEvictResult
impl Send for InsertIfAbsentNoEvictResult
impl Sync for InsertIfAbsentNoEvictResult
impl Unpin for InsertIfAbsentNoEvictResult
impl UnsafeUnpin for InsertIfAbsentNoEvictResult
impl UnwindSafe for InsertIfAbsentNoEvictResult
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