pub struct CompareAndSwapError<V> {
pub current: Option<V>,
pub proposed: Option<V>,
}
Expand description
Compare and swap error.
Fields§
§current: Option<V>
The current value which caused your CAS to fail.
proposed: Option<V>
Returned value that was proposed unsuccessfully.
Trait Implementations§
Source§impl<V: Clone> Clone for CompareAndSwapError<V>
impl<V: Clone> Clone for CompareAndSwapError<V>
Source§fn clone(&self) -> CompareAndSwapError<V>
fn clone(&self) -> CompareAndSwapError<V>
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<V: Debug> Debug for CompareAndSwapError<V>
impl<V: Debug> Debug for CompareAndSwapError<V>
Source§impl<V> Display for CompareAndSwapError<V>
impl<V> Display for CompareAndSwapError<V>
Source§impl<V: Debug> Error for CompareAndSwapError<V>
impl<V: Debug> Error for CompareAndSwapError<V>
1.30.0 · 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()
Source§impl<V: Hash> Hash for CompareAndSwapError<V>
impl<V: Hash> Hash for CompareAndSwapError<V>
Source§impl<V: Ord> Ord for CompareAndSwapError<V>
impl<V: Ord> Ord for CompareAndSwapError<V>
Source§fn cmp(&self, other: &CompareAndSwapError<V>) -> Ordering
fn cmp(&self, other: &CompareAndSwapError<V>) -> 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<V: PartialEq> PartialEq for CompareAndSwapError<V>
impl<V: PartialEq> PartialEq for CompareAndSwapError<V>
Source§impl<V: PartialOrd> PartialOrd for CompareAndSwapError<V>
impl<V: PartialOrd> PartialOrd for CompareAndSwapError<V>
impl<V: Eq> Eq for CompareAndSwapError<V>
impl<V> StructuralPartialEq for CompareAndSwapError<V>
Auto Trait Implementations§
impl<V> Freeze for CompareAndSwapError<V>where
V: Freeze,
impl<V> RefUnwindSafe for CompareAndSwapError<V>where
V: RefUnwindSafe,
impl<V> Send for CompareAndSwapError<V>where
V: Send,
impl<V> Sync for CompareAndSwapError<V>where
V: Sync,
impl<V> Unpin for CompareAndSwapError<V>where
V: Unpin,
impl<V> UnwindSafe for CompareAndSwapError<V>where
V: UnwindSafe,
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