Struct vise::GaugeGuard
source · pub struct GaugeGuard<V: GaugeValue = i64> { /* private fields */ }
Expand description
Guard for a Gauge
returned by Gauge::inc_guard()
. When dropped, a guard decrements
the gauge by the same value that it was increased by when creating the guard.
Trait Implementations§
source§impl<V: Debug + GaugeValue> Debug for GaugeGuard<V>
impl<V: Debug + GaugeValue> Debug for GaugeGuard<V>
source§impl<V: GaugeValue> Drop for GaugeGuard<V>
impl<V: GaugeValue> Drop for GaugeGuard<V>
Auto Trait Implementations§
impl<V> Freeze for GaugeGuard<V>where
V: Freeze,
impl<V> RefUnwindSafe for GaugeGuard<V>
impl<V> Send for GaugeGuard<V>
impl<V> Sync for GaugeGuard<V>
impl<V> Unpin for GaugeGuard<V>where
V: Unpin,
impl<V> UnwindSafe for GaugeGuard<V>
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