Type Alias DeleteOnDropHistogram

Source
pub type DeleteOnDropHistogram<L> = DeleteOnDropMetric<HistogramVec, L>;
Available on crate feature metrics only.
Expand description

A Histogram wrapper that deletes its labels from the vec when it is dropped.

Aliased Type§

struct DeleteOnDropHistogram<L> {
    inner: Histogram,
    labels: L,
    vec: MetricVec<HistogramVecBuilder>,
}

Fields§

§inner: Histogram§labels: L§vec: MetricVec<HistogramVecBuilder>

Trait Implementations§

Source§

impl<L> Borrow<Histogram> for DeleteOnDropHistogram<L>
where L: PromLabelsExt,

Source§

fn borrow(&self) -> &Histogram

Immutably borrows from an owned value. Read more