pub enum CasOutcome {
Stored,
Conflict {
current: Option<Bytes>,
},
}Expand description
Result of BlobStore::compare_and_swap.
Variants§
Stored
new_value is now the object’s contents.
Conflict
The object did not match expected. current is the value observed
after the failed update (None if the key is absent).
Trait Implementations§
Source§impl Clone for CasOutcome
impl Clone for CasOutcome
Source§impl Debug for CasOutcome
impl Debug for CasOutcome
impl Eq for CasOutcome
Source§impl PartialEq for CasOutcome
impl PartialEq for CasOutcome
impl StructuralPartialEq for CasOutcome
Auto Trait Implementations§
impl !Freeze for CasOutcome
impl Forget for CasOutcome
impl RefUnwindSafe for CasOutcome
impl Send for CasOutcome
impl Sync for CasOutcome
impl Unpin for CasOutcome
impl UnsafeUnpin for CasOutcome
impl UnwindSafe for CasOutcome
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