pub trait MetricSource: Sync + Send + Clone {
type N: Number;
// Required method
fn collect(&self, set: impl FnMut(&[&str], Self::N));
}
Expand description
A source of values for a SourcedMetric
.
pub trait MetricSource: Sync + Send + Clone {
type N: Number;
// Required method
fn collect(&self, set: impl FnMut(&[&str], Self::N));
}
A source of values for a SourcedMetric
.