pub struct AtomicU64(/* private fields */);
Implementations§
source§impl AtomicU64
impl AtomicU64
pub const fn new(inner: u64) -> Self
pub fn compare_exchange( &self, old: u64, new: u64, _success: Ordering, _failure: Ordering, ) -> Result<u64, u64>
pub fn load(&self, ordering: Ordering) -> u64
pub fn store(&self, new: u64, ordering: Ordering)
pub fn fetch_update( &self, set_order: Ordering, fetch_order: Ordering, f: impl FnMut(u64) -> Option<u64>, ) -> Result<u64, u64>
pub fn fetch_or(&self, bits: u64, order: Ordering) -> u64
pub fn fetch_and(&self, bits: u64, order: Ordering) -> u64
pub fn fetch_add(&self, term: u64, order: Ordering) -> u64
Trait Implementations§
impl Send for AtomicU64
impl Sync for AtomicU64
Auto Trait Implementations§
impl !Freeze for AtomicU64
impl !RefUnwindSafe for AtomicU64
impl Unpin for AtomicU64
impl UnwindSafe for AtomicU64
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