risingwave_common_metrics

Trait IntGaugeExt

source
pub trait IntGaugeExt {
    // Required method
    fn inc_guard(&self) -> impl Drop + '_;
}

Required Methods§

source

fn inc_guard(&self) -> impl Drop + '_

Increment the gauge, and return a guard that will decrement the gauge when dropped.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntGaugeExt for IntGauge

source§

fn inc_guard(&self) -> impl Drop + '_

Implementors§