Struct prometheus::core::AtomicU64
source · [−]pub struct AtomicU64 { /* private fields */ }
Expand description
A atomic unsigned integer.
Implementations
sourceimpl AtomicU64
impl AtomicU64
sourcepub fn compare_and_swap(
&self,
current: u64,
new: u64,
ordering: Ordering
) -> u64
pub fn compare_and_swap(
&self,
current: u64,
new: u64,
ordering: Ordering
) -> u64
Get the value with the provided memory ordering.
sourcepub fn inc_by_with_ordering(&self, delta: u64, ordering: Ordering)
pub fn inc_by_with_ordering(&self, delta: u64, ordering: Ordering)
Increment the value by a given amount with the provided memory ordering.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AtomicU64
impl Send for AtomicU64
impl Sync for AtomicU64
impl Unpin for AtomicU64
impl UnwindSafe for AtomicU64
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more