Struct substrate_prometheus_endpoint::U64 [−]
pub struct U64 { /* fields omitted */ }
Expand description
A atomic unsigned integer.
Implementations
impl AtomicU64
impl AtomicU64
pub 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.
pub 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
impl Atomic for AtomicU64
impl Atomic for AtomicU64
Auto Trait Implementations
impl RefUnwindSafe for AtomicU64
impl UnwindSafe for AtomicU64
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more