pub enum InsertOutcome {
Inserted,
AlreadyCovered,
TooLarge,
}Expand description
The result of an insertion attempt.
Variants§
Inserted
The bytes were admitted to the cache.
AlreadyCovered
Existing coverage already fully contained the inserted range.
TooLarge
The resulting merged range exceeded the bounded capacity.
Trait Implementations§
Source§impl Clone for InsertOutcome
impl Clone for InsertOutcome
Source§fn clone(&self) -> InsertOutcome
fn clone(&self) -> InsertOutcome
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 moreimpl Copy for InsertOutcome
Source§impl Debug for InsertOutcome
impl Debug for InsertOutcome
impl Eq for InsertOutcome
Source§impl PartialEq for InsertOutcome
impl PartialEq for InsertOutcome
impl StructuralPartialEq for InsertOutcome
Auto Trait Implementations§
impl Freeze for InsertOutcome
impl RefUnwindSafe for InsertOutcome
impl Send for InsertOutcome
impl Sync for InsertOutcome
impl Unpin for InsertOutcome
impl UnsafeUnpin for InsertOutcome
impl UnwindSafe for InsertOutcome
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