Struct ore::metrics::delete_on_drop::DeleteOnDropGauge [−][src]
pub struct DeleteOnDropGauge<'a, P, L> where
P: Atomic,
L: PromLabelsExt<'a>, {
inner: GenericGauge<P>,
labels: L,
vec: GenericGaugeVec<P>,
_phantom: &'a PhantomData<()>,
}
This is supported on crate feature
metrics
only.Expand description
A GenericGauge
wrapper that deletes its labels from the vec when it is dropped
Fields
inner: GenericGauge<P>
labels: L
vec: GenericGaugeVec<P>
_phantom: &'a PhantomData<()>
Implementations
Methods from Deref<Target = GenericGauge<P>>
The fully qualified name for this gauge
This is the name with no labels, and corresponds to desc().fq_name
on
the Collector
trait.
Add the given value to the gauge. (The value can be negative, resulting in a decrement of the gauge.)
Subtract the given value from the gauge. (The value can be negative, resulting in an increment of the gauge.)
Trait Implementations
impl<'a, P: Debug, L: Debug> Debug for DeleteOnDropGauge<'a, P, L> where
P: Atomic,
L: PromLabelsExt<'a>,
impl<'a, P: Debug, L: Debug> Debug for DeleteOnDropGauge<'a, P, L> where
P: Atomic,
L: PromLabelsExt<'a>,
type Target = GenericGauge<P>
type Target = GenericGauge<P>
The resulting type after dereferencing.
Dereferences the value.
Auto Trait Implementations
impl<'a, P, L> !RefUnwindSafe for DeleteOnDropGauge<'a, P, L>
impl<'a, P, L> Send for DeleteOnDropGauge<'a, P, L> where
L: Send,
impl<'a, P, L> Sync for DeleteOnDropGauge<'a, P, L> where
L: Sync,
impl<'a, P, L> Unpin for DeleteOnDropGauge<'a, P, L> where
L: Unpin,
impl<'a, P, L> !UnwindSafe for DeleteOnDropGauge<'a, P, L>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more