Trait GuardedGauge

Source
pub trait GuardedGauge<P: Atomic + 'static> {
    // Required methods
    fn guarded_inc(&'static self) -> GenericGaugeGuard<P>;
    fn guarded_add(&'static self, v: P::T) -> GenericGaugeGuard<P>;
}
Expand description

An extension trait for GenericGauge to provide methods for temporarily modifying a gauge.

Required Methods§

Source

fn guarded_inc(&'static self) -> GenericGaugeGuard<P>

Increase the gauge by 1 while the guard exists.

Source

fn guarded_add(&'static self, v: P::T) -> GenericGaugeGuard<P>

Increase the gauge by the given increment while the guard exists.

Implementations on Foreign Types§

Source§

impl<P: Atomic + 'static> GuardedGauge<P> for GenericGauge<P>

Source§

fn guarded_inc(&'static self) -> GenericGaugeGuard<P>

Source§

fn guarded_add(&'static self, v: P::T) -> GenericGaugeGuard<P>

Implementors§