Struct metrics_util::registry::AtomicStorage
source · pub struct AtomicStorage;
Available on crate feature
registry
only.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§
source§impl<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 Freeze for AtomicStorage
impl RefUnwindSafe for AtomicStorage
impl Send for AtomicStorage
impl Sync for AtomicStorage
impl Unpin for AtomicStorage
impl UnwindSafe for AtomicStorage
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