Trait Collect

Source
pub trait Collect {
    type Metrics: Iterator<Item = Metric>;

    // Required method
    fn collect(&mut self) -> Option<Self::Metrics>;
}
Expand description

This trait allows for collecting metrics.

Required Associated Types§

Source

type Metrics: Iterator<Item = Metric>

An iterator over collected metrics.

Required Methods§

Source

fn collect(&mut self) -> Option<Self::Metrics>

Collects metrics.

If there are no more metrics to collect, this method will return None.

Implementors§