pub struct AtomicU8(/* private fields */);Implementations§
Source§impl AtomicU8
impl AtomicU8
pub fn new(v: u8) -> Self
pub fn with_mut<R>(&mut self, f: impl FnOnce(&mut u8) -> R) -> R
pub fn load(&self, order: Ordering) -> u8
pub fn store(&self, val: u8, order: Ordering)
pub fn fetch_add(&self, val: u8, order: Ordering) -> u8
pub fn fetch_sub(&self, val: u8, order: Ordering) -> u8
pub fn fetch_or(&self, val: u8, order: Ordering) -> u8
Auto Trait Implementations§
impl !Freeze for AtomicU8
impl RefUnwindSafe for AtomicU8
impl Send for AtomicU8
impl Sync for AtomicU8
impl Unpin for AtomicU8
impl UnsafeUnpin for AtomicU8
impl UnwindSafe for AtomicU8
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