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