Trait metrics_prometheus::metric::Bundled

source ·
pub trait Bundled: Sealed {
    type Bundle: Bundle;

    // Required method
    fn into_bundle(self) -> Self::Bundle;
}
Expand description

prometheus metric being Bundled.

Required Associated Types§

source

type Bundle: Bundle

Type of a Bundle bundling this prometheus metric.

Required Methods§

source

fn into_bundle(self) -> Self::Bundle

Wraps this prometheus metric into its Bundle.

Implementations on Foreign Types§

source§

impl Bundled for Histogram

§

type Bundle = Either<Histogram, MetricVec<HistogramVecBuilder>>

source§

fn into_bundle(self) -> Self::Bundle

source§

impl Bundled for IntCounter

§

type Bundle = Either<GenericCounter<AtomicU64>, MetricVec<CounterVecBuilder<AtomicU64>>>

source§

fn into_bundle(self) -> Self::Bundle

source§

impl Bundled for IntCounterVec

§

type Bundle = Either<GenericCounter<AtomicU64>, MetricVec<CounterVecBuilder<AtomicU64>>>

source§

fn into_bundle(self) -> Self::Bundle

source§

impl Bundled for Gauge

§

type Bundle = Either<GenericGauge<AtomicF64>, MetricVec<GaugeVecBuilder<AtomicF64>>>

source§

fn into_bundle(self) -> Self::Bundle

source§

impl Bundled for GaugeVec

§

type Bundle = Either<GenericGauge<AtomicF64>, MetricVec<GaugeVecBuilder<AtomicF64>>>

source§

fn into_bundle(self) -> Self::Bundle

source§

impl Bundled for HistogramVec

§

type Bundle = Either<Histogram, MetricVec<HistogramVecBuilder>>

source§

fn into_bundle(self) -> Self::Bundle

Implementors§