MetricsExt

Trait MetricsExt 

Source
pub trait MetricsExt {
    // Required methods
    fn find_count(&self, name: &str) -> Option<Count>;
    fn iter_counts(&self) -> impl Iterator<Item = (impl AsRef<str>, &Count)>;
}

Required Methods§

Source

fn find_count(&self, name: &str) -> Option<Count>

Source

fn iter_counts(&self) -> impl Iterator<Item = (impl AsRef<str>, &Count)>

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.

Implementations on Foreign Types§

Source§

impl MetricsExt for MetricsSet

Source§

fn find_count(&self, metric_name: &str) -> Option<Count>

Source§

fn iter_counts(&self) -> impl Iterator<Item = (impl AsRef<str>, &Count)>

Implementors§