pub trait CountedExt: Counted<i64> {
    fn incr(&self, key: &str) -> MetricResult<Counter> { ... }
    fn incr_with_tags<'a>(
        &'a self,
        key: &'a str
    ) -> MetricBuilder<'_, '_, Counter> { ... } fn decr(&self, key: &str) -> MetricResult<Counter> { ... } fn decr_with_tags<'a>(
        &'a self,
        key: &'a str
    ) -> MetricBuilder<'_, '_, Counter> { ... } }
Expand description

Trait for convenience methods for counters

This trait specifically implements increment and decrement convenience methods for counters with i64 types.

Provided Methods

Increment the counter by 1

Increment the counter by 1 and return a MetricBuilder that can be used to add tags to the metric.

Decrement the counter by 1

Decrement the counter by 1 and return a MetricBuilder that can be used to add tags to the metric.

Implementors