pub struct CasFailure<V> {
pub actual: Option<V>,
pub returned_new_value: Option<V>,
}
Expand description
Error type for the ConcurrentMap::cas
operation.
Fields§
§actual: Option<V>
The current actual value that failed the comparison
returned_new_value: Option<V>
The value that was proposed as a new value, which could not be installed due to the comparison failure.
Trait Implementations§
Source§impl<V: Debug> Debug for CasFailure<V>
impl<V: Debug> Debug for CasFailure<V>
Source§impl<V: PartialEq> PartialEq for CasFailure<V>
impl<V: PartialEq> PartialEq for CasFailure<V>
impl<V: Eq> Eq for CasFailure<V>
impl<V> StructuralPartialEq for CasFailure<V>
Auto Trait Implementations§
impl<V> Freeze for CasFailure<V>where
V: Freeze,
impl<V> RefUnwindSafe for CasFailure<V>where
V: RefUnwindSafe,
impl<V> Send for CasFailure<V>where
V: Send,
impl<V> Sync for CasFailure<V>where
V: Sync,
impl<V> Unpin for CasFailure<V>where
V: Unpin,
impl<V> UnwindSafe for CasFailure<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