Trait mz_storage_client::statistics::StorageMetric
source · pub trait StorageMetric {
// Required methods
fn summarize<'a, I>(values: I) -> Self
where I: IntoIterator<Item = &'a Self>,
Self: Sized + 'a;
fn incorporate(&mut self, other: Self, field_name: &'static str);
}
Expand description
A trait that defines the semantics storage statistics are able to have
Required Methods§
sourcefn summarize<'a, I>(values: I) -> Self
fn summarize<'a, I>(values: I) -> Self
Summarizes a set of measurements into a single representative value. Typically this function is used to summarize the measurements collected from each worker.
sourcefn incorporate(&mut self, other: Self, field_name: &'static str)
fn incorporate(&mut self, other: Self, field_name: &'static str)
Incorporate this value with another.
Object Safety§
This trait is not object safe.