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§

source

fn summarize<'a, I>(values: I) -> Self
where I: IntoIterator<Item = &'a Self>, Self: Sized + 'a,

Summarizes a set of measurements into a single representative value. Typically this function is used to summarize the measurements collected from each worker.

source

fn incorporate(&mut self, other: Self, field_name: &'static str)

Incorporate this value with another.

Object Safety§

This trait is not object safe.

Implementors§