Type Alias mz_ore::metrics::delete_on_drop::DeleteOnDropGauge
source · pub type DeleteOnDropGauge<'a, P, L> = DeleteOnDropMetric<'a, 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<'a, P, L> {
inner: <MetricVec<GaugeVecBuilder<P>> as MetricVec_>::M,
labels: L,
vec: MetricVec<GaugeVecBuilder<P>>,
_phantom: &'a PhantomData<()>,
}
Fields§
§inner: <MetricVec<GaugeVecBuilder<P>> as MetricVec_>::M
§labels: L
§vec: MetricVec<GaugeVecBuilder<P>>
§_phantom: &'a PhantomData<()>
Trait Implementations§
source§impl<'a, P, L> Borrow<GenericGauge<P>> for DeleteOnDropGauge<'a, P, L>where
P: Atomic,
L: PromLabelsExt<'a>,
impl<'a, P, L> Borrow<GenericGauge<P>> for DeleteOnDropGauge<'a, P, L>where
P: Atomic,
L: PromLabelsExt<'a>,
source§fn borrow(&self) -> &GenericGauge<P>
fn borrow(&self) -> &GenericGauge<P>
Immutably borrows from an owned value. Read more