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.