Skip to main content

CounterVec

Trait CounterVec 

Source
pub trait CounterVec:
    Send
    + Sync
    + 'static {
    // Required method
    fn with_labels(&self, labels: &[&str]) -> Arc<dyn Counter> ;
}
Expand description

A counter metric family — use with_labels to get a concrete handle.

Required Methods§

Source

fn with_labels(&self, labels: &[&str]) -> Arc<dyn Counter>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§