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
Source§

impl<V, L> Clone for DeleteOnDropMetric<V, L>
where V: MetricVec_ + Clone, L: PromLabelsExt + Clone, V::M: Clone,

Source§

fn clone(&self) -> DeleteOnDropMetric<V, L>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V, L> Debug for DeleteOnDropMetric<V, L>
where V: MetricVec_ + Debug, L: PromLabelsExt + Debug, V::M: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<V, L> Deref for DeleteOnDropMetric<V, L>

Source§

type Target = <V as MetricVec_>::M

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<V, L> Drop for DeleteOnDropMetric<V, L>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more