Struct sled::CompareAndSwapError
source · pub struct CompareAndSwapError {
pub current: Option<IVec>,
pub proposed: Option<IVec>,
}
Expand description
Compare and swap error.
Fields§
§current: Option<IVec>
The current value which caused your CAS to fail.
proposed: Option<IVec>
Returned value that was proposed unsuccessfully.
Trait Implementations§
source§impl Clone for CompareAndSwapError
impl Clone for CompareAndSwapError
source§fn clone(&self) -> CompareAndSwapError
fn clone(&self) -> CompareAndSwapError
Returns a copy 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 CompareAndSwapError
impl Debug for CompareAndSwapError
source§impl Display for CompareAndSwapError
impl Display for CompareAndSwapError
source§impl Error for CompareAndSwapError
impl Error for CompareAndSwapError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl Hash for CompareAndSwapError
impl Hash for CompareAndSwapError
source§impl Ord for CompareAndSwapError
impl Ord for CompareAndSwapError
source§fn cmp(&self, other: &CompareAndSwapError) -> Ordering
fn cmp(&self, other: &CompareAndSwapError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CompareAndSwapError> for CompareAndSwapError
impl PartialEq<CompareAndSwapError> for CompareAndSwapError
source§fn eq(&self, other: &CompareAndSwapError) -> bool
fn eq(&self, other: &CompareAndSwapError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CompareAndSwapError> for CompareAndSwapError
impl PartialOrd<CompareAndSwapError> for CompareAndSwapError
source§fn partial_cmp(&self, other: &CompareAndSwapError) -> Option<Ordering>
fn partial_cmp(&self, other: &CompareAndSwapError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CompareAndSwapError
impl StructuralEq for CompareAndSwapError
impl StructuralPartialEq for CompareAndSwapError
Auto Trait Implementations§
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