Struct opentelemetry_api::metrics::Histogram
source · [−]pub struct Histogram<T>(_);
Available on crate feature
metrics
only.Expand description
An instrument that records a distribution of values.
Implementations
Trait Implementations
sourceimpl TryFrom<InstrumentBuilder<'_, Histogram<f64>>> for Histogram<f64>
impl TryFrom<InstrumentBuilder<'_, Histogram<f64>>> for Histogram<f64>
type Error = MetricsError
type Error = MetricsError
The type returned in the event of a conversion error.
sourceimpl TryFrom<InstrumentBuilder<'_, Histogram<i64>>> for Histogram<i64>
impl TryFrom<InstrumentBuilder<'_, Histogram<i64>>> for Histogram<i64>
type Error = MetricsError
type Error = MetricsError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl<T> !RefUnwindSafe for Histogram<T>
impl<T> Send for Histogram<T>
impl<T> Sync for Histogram<T>
impl<T> Unpin for Histogram<T>
impl<T> !UnwindSafe for Histogram<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more