foyer_common::metrics

Trait CounterVecOps

Source
pub trait CounterVecOps:
    Send
    + Sync
    + 'static
    + Debug {
    // Required method
    fn counter(&self, labels: &[&'static str]) -> impl CounterOps;
}
Expand description

A vector of counters.

Required Methods§

Source

fn counter(&self, labels: &[&'static str]) -> impl CounterOps

Get a counter within the vector of counters.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§