Type Alias metrics_util::registry::GenerationalAtomicStorage

source ·
pub type GenerationalAtomicStorage = GenerationalStorage<AtomicStorage>;
Available on crate features registry and recency only.
Expand description

Generational atomic metric storage.

GenerationalAtomicStorage is based on AtomicStorage, but additionally tracks the “generation” of a metric, which is used to detect updates to metrics where the value otherwise would not be sufficient to be used as an indicator.

Aliased Type§

struct GenerationalAtomicStorage { /* private fields */ }

Implementations§

source§

impl GenerationalAtomicStorage

source

pub fn atomic() -> Self

Creates a GenerationalStorage that uses AtomicStorage as its underlying storage.