pub struct AtomicU8State<T> { /* private fields */ }Expand description
An atomic that stores a given state in a $raw_type
Implementations§
Source§impl<T> AtomicU8State<T>
impl<T> AtomicU8State<T>
Source§impl<T> AtomicU8State<T>
impl<T> AtomicU8State<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Analog for [$atomic_type::into_inner].
Source§impl<T> AtomicU8State<T>
impl<T> AtomicU8State<T>
Sourcepub fn compare_exchange(
&self,
current: T,
new: T,
success: Ordering,
failure: Ordering,
) -> Result<T, T>
pub fn compare_exchange( &self, current: T, new: T, success: Ordering, failure: Ordering, ) -> Result<T, T>
Analog for [$atomic_type::compare_exchange].
Sourcepub fn compare_exchange_weak(
&self,
current: T,
new: T,
success: Ordering,
failure: Ordering,
) -> Result<T, T>
pub fn compare_exchange_weak( &self, current: T, new: T, success: Ordering, failure: Ordering, ) -> Result<T, T>
Analog for [$atomic_type::compare_exchange_weak].
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for AtomicU8State<T>
impl<T> RefUnwindSafe for AtomicU8State<T>
impl<T> Send for AtomicU8State<T>
impl<T> Sync for AtomicU8State<T>
impl<T> Unpin for AtomicU8State<T>
impl<T> UnwindSafe for AtomicU8State<T>
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