Type Alias PrometheusIntCounter

Source
pub type PrometheusIntCounter = Either<IntCounter, IntCounterVec>;
Expand description

Aliased Type§

pub enum PrometheusIntCounter {
    Single(GenericCounter<AtomicU64>),
    Vec(MetricVec<CounterVecBuilder<AtomicU64>>),
}

Variants§

Trait Implementations§

Source§

impl TryFrom<&Key> for PrometheusIntCounter

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(key: &Key) -> Result<Self, Self::Error>

Performs the conversion.