[][src]Struct opentelemetry::api::metrics::Measurement

pub struct Measurement<LS> { /* fields omitted */ }

Used to record MeasurementValues for a given Instrument for use in batch recording by a Meter.

Implementations

impl<LS: LabelSet> Measurement<LS>[src]

pub fn new(instrument: Arc<dyn Instrument<LS>>, value: MeasurementValue) -> Self[src]

Create a new measurement

pub fn instrument(&self) -> Arc<dyn Instrument<LS>>[src]

Returns an instrument that created this measurement.

pub fn into_value(self) -> MeasurementValue[src]

Returns a value recorded in this measurement.

Auto Trait Implementations

impl<LS> !RefUnwindSafe for Measurement<LS>

impl<LS> !Send for Measurement<LS>

impl<LS> !Sync for Measurement<LS>

impl<LS> Unpin for Measurement<LS>

impl<LS> !UnwindSafe for Measurement<LS>

Blanket Implementations

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

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

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

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

impl<T> FutureExt for T[src]

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,