Struct metrix::instruments::Histogram [−][src]
pub struct Histogram { /* fields omitted */ }
For tracking values. E.g. request latencies
Methods
impl Histogram
[src]
impl Histogram
pub fn new_with_defaults<T: Into<String>>(name: T) -> Histogram
[src]
pub fn new_with_defaults<T: Into<String>>(name: T) -> Histogram
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
pub fn set_name<T: Into<String>>(&mut self, name: T)
[src]
pub fn set_name<T: Into<String>>(&mut self, name: T)
pub fn set_title<T: Into<String>>(&mut self, title: T)
[src]
pub fn set_title<T: Into<String>>(&mut self, title: T)
pub fn set_description<T: Into<String>>(&mut self, description: T)
[src]
pub fn set_description<T: Into<String>>(&mut self, description: T)
Trait Implementations
impl Instrument for Histogram
[src]
impl Instrument for Histogram
impl PutsSnapshot for Histogram
[src]
impl PutsSnapshot for Histogram
fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool)
[src]
fn put_snapshot(&self, into: &mut Snapshot, descriptive: bool)
Puts the current snapshot values into the given Snapshot
thereby following the guidelines of PutsSnapshot
. Read more
impl Updates for Histogram
[src]
impl Updates for Histogram
fn update(&mut self, with: &Update)
[src]
fn update(&mut self, with: &Update)
Update the internal state according to the given Update
. Read more
impl Descriptive for Histogram
[src]
impl Descriptive for Histogram