pub type CompareAndSetError<'g, T, P> = CompareExchangeError<'g, T, P>;
👎Deprecated: Use CompareExchangeError instead
Expand description

The error returned on failed compare-and-set operation.

Aliased Type§

struct CompareAndSetError<'g, T, P> {
    pub current: Shared<'g, T>,
    pub new: P,
}

Fields§

§current: Shared<'g, T>

The value in the atomic pointer at the time of the failed operation.

§new: P

The new value, which the operation failed to store.

Trait Implementations§

source§

impl<T, P: Pointer<T> + Debug> Debug for CompareExchangeError<'_, T, P>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more