Trait ore::metrics::GaugeVecExt [−][src]
pub trait GaugeVecExt {
type GaugeType: Atomic;
fn get_delete_on_drop_gauge<'a, L: PromLabelsExt<'a>>(
&self,
labels: L
) -> DeleteOnDropGauge<'a, Self::GaugeType, L>;
}
This is supported on crate feature
metrics
only.Expand description
Extension trait for all metrics vectors.
Associated Types
Required methods
fn get_delete_on_drop_gauge<'a, L: PromLabelsExt<'a>>(
&self,
labels: L
) -> DeleteOnDropGauge<'a, Self::GaugeType, L>
fn get_delete_on_drop_gauge<'a, L: PromLabelsExt<'a>>(
&self,
labels: L
) -> DeleteOnDropGauge<'a, Self::GaugeType, L>
Returns a gauge that deletes its labels from this metrics vector when dropped.
See DeleteOnDropGauge
for a detailed description.