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,
impl<L> Borrow<Histogram> for DeleteOnDropHistogram<L>where
L: PromLabelsExt,
Source§impl<V, L> Clone for DeleteOnDropMetric<V, L>
impl<V, L> Clone for DeleteOnDropMetric<V, L>
Source§fn clone(&self) -> DeleteOnDropMetric<V, L>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more