pub enum DeleteResult {
Deleted,
Conflict(Box<Conflict>),
}Expand description
The outcome of a conditional delete. Like a Conflict from put, a
Conflict here is a normal, recoverable result — not an error.
Variants§
Deleted
The key is now absent: the record was removed, or there was nothing to
remove (expected == None, or an expected revision that was already
gone). Idempotent.
Conflict(Box<Conflict>)
expected was supplied but the store’s current revision differs; the
record was left untouched and current holds the live record.
Trait Implementations§
Source§impl Clone for DeleteResult
impl Clone for DeleteResult
Source§fn clone(&self) -> DeleteResult
fn clone(&self) -> DeleteResult
Returns a duplicate of the value. Read more
1.0.0 · 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 DeleteResult
impl Debug for DeleteResult
Source§impl PartialEq for DeleteResult
impl PartialEq for DeleteResult
impl Eq for DeleteResult
impl StructuralPartialEq for DeleteResult
Auto Trait Implementations§
impl Freeze for DeleteResult
impl RefUnwindSafe for DeleteResult
impl Send for DeleteResult
impl Sync for DeleteResult
impl Unpin for DeleteResult
impl UnsafeUnpin for DeleteResult
impl UnwindSafe for DeleteResult
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