Skip to main content

HistogramBucketLabel

Trait HistogramBucketLabel 

Source
pub(super) trait HistogramBucketLabel: MetricBucketLabel {
    // Required method
    fn from_duration(duration: Duration) -> Option<Self>;
}

Required Methods§

Source

fn from_duration(duration: Duration) -> Option<Self>

Returns the first inclusive finite bound or None above the largest bound.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§