Struct metrics_util::registry::AtomicStorage
source · [−]pub struct AtomicStorage;
Expand description
Atomic metric storage.
Utilizes atomics for storing the value(s) of a given metric. Shared access to the actual atomic
is handling via Arc
.
Trait Implementations
sourceimpl<K> Storage<K> for AtomicStorage
impl<K> Storage<K> for AtomicStorage
type Histogram = Arc<AtomicBucket<f64>>
type Histogram = Arc<AtomicBucket<f64>>
The type used for histograms.
Auto Trait Implementations
impl RefUnwindSafe for AtomicStorage
impl Send for AtomicStorage
impl Sync for AtomicStorage
impl Unpin for AtomicStorage
impl UnwindSafe for AtomicStorage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more