pub enum NondestructiveInsert {
Success(AuthorisedEntry),
Prevented,
Outdated,
}Expand description
The possible successful outcomes of non-destructively inserting an AuthorisedEntry into a Store.
Variants§
Success(AuthorisedEntry)
Inserted the entry, and no other data was pruned.
Prevented
Inserting an entry would have pruned old entries, so instead the store was not modified at all.
Outdated
The inserted entry would be pruned by a newer entry in the store, so it was not inserted in the first place.
Trait Implementations§
Source§impl Clone for NondestructiveInsert
impl Clone for NondestructiveInsert
Source§fn clone(&self) -> NondestructiveInsert
fn clone(&self) -> NondestructiveInsert
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 NondestructiveInsert
impl Debug for NondestructiveInsert
impl Eq for NondestructiveInsert
Source§impl PartialEq for NondestructiveInsert
impl PartialEq for NondestructiveInsert
impl StructuralPartialEq for NondestructiveInsert
Auto Trait Implementations§
impl !Freeze for NondestructiveInsert
impl RefUnwindSafe for NondestructiveInsert
impl Send for NondestructiveInsert
impl Sync for NondestructiveInsert
impl Unpin for NondestructiveInsert
impl UnsafeUnpin for NondestructiveInsert
impl UnwindSafe for NondestructiveInsert
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more