Struct concurrent_map::CasFailure
source · 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
sourceimpl<V: Debug> Debug for CasFailure<V>
impl<V: Debug> Debug for CasFailure<V>
sourceimpl<V: PartialEq> PartialEq<CasFailure<V>> for CasFailure<V>
impl<V: PartialEq> PartialEq<CasFailure<V>> for CasFailure<V>
sourcefn eq(&self, other: &CasFailure<V>) -> bool
fn eq(&self, other: &CasFailure<V>) -> bool
impl<V: Eq> Eq for CasFailure<V>
impl<V> StructuralEq for CasFailure<V>
impl<V> StructuralPartialEq for CasFailure<V>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more