risingwave_common_metrics::gauge_ext

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§