pub struct GenericGaugeGuard<P: Atomic + 'static> { /* private fields */ }
Expand description
An RAII-style guard for situations where we want to increment a gauge and then ensure that there is always a corresponding decrement.
Created by the methods on the GuardedGauge
extension trait.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for GenericGaugeGuard<P>
impl<P> RefUnwindSafe for GenericGaugeGuard<P>
impl<P> Send for GenericGaugeGuard<P>
impl<P> Sync for GenericGaugeGuard<P>
impl<P> Unpin for GenericGaugeGuard<P>
impl<P> UnwindSafe for GenericGaugeGuard<P>
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