[][src]Struct metrix::instruments::Histogram

pub struct Histogram { /* fields omitted */ }

For tracking values. E.g. request latencies

Methods

impl Histogram[src]

pub fn new_with_defaults<T: Into<String>>(name: T) -> Histogram[src]

pub fn name(&self) -> &str[src]

pub fn set_name<T: Into<String>>(&mut self, name: T)[src]

pub fn set_title<T: Into<String>>(&mut self, title: T)[src]

pub fn set_description<T: Into<String>>(&mut self, description: T)[src]

pub fn set_inactivity_limit(&mut self, limit: Duration)[src]

Sets the maximum amount of time this histogram may be inactive until no more snapshots are taken

Default is no inactivity tracking.

pub fn reset_after_inactivity(&mut self, reset: bool)[src]

Reset the histogram if inactivity tracking was enabled and the histogram was inactive.

The default is true. Only has an effect if a max_inactivity_duration is set.

Trait Implementations

impl Updates for Histogram[src]

impl Instrument for Histogram[src]

impl Descriptive for Histogram[src]

impl PutsSnapshot for Histogram[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,