pub enum Insertion {
Stored,
Conflict(Bytes),
Failed(String),
}Expand description
What a Storage::insert did.
Variants§
Stored
The storage now holds the value that was passed in.
Conflict(Bytes)
The storage declined the write and kept a different value, which is returned. Someone else — another process, or an earlier run — got there first.
Failed(String)
The backend refused the write: a full disk, a lock held past the busy timeout, a revoked permission. Nothing was stored, and the message says why.
Trait Implementations§
impl Eq for Insertion
impl StructuralPartialEq for Insertion
Auto Trait Implementations§
impl !RefUnwindSafe for Insertion
impl !UnwindSafe for Insertion
impl Freeze for Insertion
impl Send for Insertion
impl Sync for Insertion
impl Unpin for Insertion
impl UnsafeUnpin for Insertion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.