Type Alias mz_ore::metrics::DeleteOnDropHistogram

source ·
pub type DeleteOnDropHistogram<'a, L> = DeleteOnDropMetric<'a, 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<'a, L> {
    inner: Histogram,
    labels: L,
    vec: MetricVec<HistogramVecBuilder>,
    _phantom: &'a PhantomData<()>,
}

Fields§

§inner: Histogram§labels: L§vec: MetricVec<HistogramVecBuilder>§_phantom: &'a PhantomData<()>

Trait Implementations§

source§

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

source§

fn borrow(&self) -> &Histogram

Immutably borrows from an owned value. Read more