pub struct MultiGaugeGuard<'a> { /* private fields */ }Expand description
Creates a RAII guard for a multi-gauge metric.
The metric with the given labels is incremented when the guard is created and decremented when the guard is dropped.
Implementations§
Source§impl<'a> MultiGaugeGuard<'a>
impl<'a> MultiGaugeGuard<'a>
pub fn new(metric: &'a MultiGauge, labels: &'a [&'a str], by: f64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MultiGaugeGuard<'a>
impl<'a> !RefUnwindSafe for MultiGaugeGuard<'a>
impl<'a> Send for MultiGaugeGuard<'a>
impl<'a> Sync for MultiGaugeGuard<'a>
impl<'a> Unpin for MultiGaugeGuard<'a>
impl<'a> !UnwindSafe for MultiGaugeGuard<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more