pub enum CompareAndSwapError {
Conflict(Option<ArcBytes<'static>>),
Error(Error),
}Expand description
An error returned from compare_and_swap().
Variants§
Conflict(Option<ArcBytes<'static>>)
The stored value did not match the conditional value.
Error(Error)
Another error occurred while executing the operation.
Trait Implementations§
Source§impl Debug for CompareAndSwapError
impl Debug for CompareAndSwapError
Source§impl Display for CompareAndSwapError
impl Display for CompareAndSwapError
Source§impl Error for CompareAndSwapError
impl Error for CompareAndSwapError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl !Freeze for CompareAndSwapError
impl !RefUnwindSafe for CompareAndSwapError
impl Send for CompareAndSwapError
impl Sync for CompareAndSwapError
impl Unpin for CompareAndSwapError
impl !UnwindSafe for CompareAndSwapError
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