Trait prometrics::Collect [] [src]

pub trait Collect {
    type Metrics: Iterator<Item = Metric>;
    fn collect(&mut self) -> Option<Self::Metrics>;
}

This trait allows for collecting metrics.

Associated Types

An iterator over collected metrics.

Required Methods

Collects metrics.

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

Implementors