pub type DeleteOnDropCounter<P, L> = DeleteOnDropMetric<GenericCounterVec<P>, L>;
Available on crate feature
metrics
only.Expand description
A GenericCounter
wrapper that deletes its labels from the vec when it is dropped.
Aliased Type§
struct DeleteOnDropCounter<P, L> {
inner: <MetricVec<CounterVecBuilder<P>> as MetricVec_>::M,
labels: L,
vec: MetricVec<CounterVecBuilder<P>>,
}
Fields§
§inner: <MetricVec<CounterVecBuilder<P>> as MetricVec_>::M
§labels: L
§vec: MetricVec<CounterVecBuilder<P>>
Trait Implementations§
Source§impl<P, L> Borrow<GenericCounter<P>> for DeleteOnDropCounter<P, L>where
P: Atomic,
L: PromLabelsExt,
impl<P, L> Borrow<GenericCounter<P>> for DeleteOnDropCounter<P, L>where
P: Atomic,
L: PromLabelsExt,
Source§fn borrow(&self) -> &GenericCounter<P>
fn borrow(&self) -> &GenericCounter<P>
Immutably borrows from an owned value. Read more
Source§impl<P, L> InstrumentedChannelMetric for DeleteOnDropCounter<P, L>where
P: Atomic,
L: PromLabelsExt,
Available on crate feature async
only.
impl<P, L> InstrumentedChannelMetric for DeleteOnDropCounter<P, L>where
P: Atomic,
L: PromLabelsExt,
Available on crate feature
async
only.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