Struct prometheus::core::AtomicU64 [−][src]
A atomic unsigned integer.
Implementations
impl AtomicU64
[src][−]
pub fn compare_and_swap(
&self,
current: u64,
new: u64,
ordering: Ordering
) -> u64
[src][−]
&self,
current: u64,
new: u64,
ordering: Ordering
) -> u64
Get the value with the provided memory ordering.
pub fn inc_by_with_ordering(&self, delta: u64, ordering: Ordering)
[src][−]
Increment the value by a given amount with the provided memory ordering.
pub fn swap(&self, val: u64, ordering: Ordering) -> u64
[src][−]
Stores a value into the atomic integer, returning the previous value.
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
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,