[][src]Struct opentelemetry::api::metrics::value::MeasurementValue

pub struct MeasurementValue(_);

MeasurementValue represents either an integer or a floating point value of a measurement. It needs to be accompanied with a value kind or some source that provides a value kind describing this measurement value.

Methods

impl MeasurementValue[src]

pub fn into_i64(self) -> i64[src]

Convert the underlying AtomicU64 into a standard i64.

pub fn into_f64(self) -> f64[src]

Convert the underlying AtomicU64 into a standard f64.

Trait Implementations

impl From<i64> for MeasurementValue[src]

fn from(value: i64) -> Self[src]

Convert i64 instances to MeasurementValue instances for use by Instruments.

impl From<f64> for MeasurementValue[src]

fn from(value: f64) -> Self[src]

Convert f64 instances to MeasurementValue instances for use by Instruments.

impl Debug for MeasurementValue[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>,