Type Definition metrics_util::registry::GenerationalAtomicStorage
source · [−]pub type GenerationalAtomicStorage = GenerationalStorage<AtomicStorage>;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.
Implementations
sourceimpl GenerationalAtomicStorage
impl GenerationalAtomicStorage
sourcepub fn atomic() -> Self
pub fn atomic() -> Self
Creates a GenerationalStorage that uses AtomicStorage as its underlying storage.