pub trait Collect { type Metrics: Iterator<Item = Metric>; // Required method fn collect(&mut self) -> Option<Self::Metrics>; }
This trait allows for collecting metrics.
An iterator over collected metrics.
Collects metrics.
If there are no more metrics to collect, this method will return None.
None