iroh_metrics

Trait MetricsGroup

Source
pub trait MetricsGroup:
    Any
    + Iterable
    + IntoIterable
    + Debug
    + 'static
    + Send
    + Sync {
    // Required method
    fn name(&self) -> &'static str;

    // Provided method
    fn iter(&self) -> FieldIter<'_>  { ... }
}
Expand description

Trait for structs containing metric items.

Required Methods§

Source

fn name(&self) -> &'static str

Returns the name of this metrics group.

Provided Methods§

Source

fn iter(&self) -> FieldIter<'_>

Returns an iterator over all metric items with their values and helps.

Implementors§