Struct concurrent_map::CasFailure
source · 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<CasFailure<V>> for CasFailure<V>
impl<V: PartialEq> PartialEq<CasFailure<V>> for CasFailure<V>
source§fn eq(&self, other: &CasFailure<V>) -> bool
fn eq(&self, other: &CasFailure<V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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