pub struct CompareExchangeError<P, S> {
pub desired: P,
pub current: S,
}Expand description
Result of a failed compare_exchange operation.
It returns the ownership of the pointer which was given as a parameter desired.
Fields§
§desired: PThe desired value that was passed to compare_exchange.
current: SThe current pointer value inside the atomic pointer.
Auto Trait Implementations§
impl<P, S> Freeze for CompareExchangeError<P, S>
impl<P, S> RefUnwindSafe for CompareExchangeError<P, S>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for CompareExchangeError<P, S>
impl<P, S> Sync for CompareExchangeError<P, S>
impl<P, S> Unpin for CompareExchangeError<P, S>
impl<P, S> UnwindSafe for CompareExchangeError<P, S>where
P: UnwindSafe,
S: 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