Skip to main content

StorageMetric

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§