[][src]Struct opentelemetry::api::metrics::noop::NoopMeasure

pub struct NoopMeasure<T> { /* fields omitted */ }

A no-op instance of a Measure.

Trait Implementations

impl<T: Clone> Clone for NoopMeasure<T>[src]

impl<T: Debug> Debug for NoopMeasure<T>[src]

impl<T> Instrument<NoopLabelSet> for NoopMeasure<T>[src]

fn record_one(&self, _value: MeasurementValue, _labels: &NoopLabelSet)[src]

Ignores all measurement values and labels.

impl Measure<f64, NoopLabelSet> for NoopMeasure<f64>[src]

type Handle = NoopHandle<f64>

The handle type for the implementing Measure.

fn measurement(&self, value: f64) -> Measurement<NoopLabelSet>[src]

Returns a no-op Measurement.

fn acquire_handle(&self, _labels: &NoopLabelSet) -> Self::Handle[src]

Returns a NoopHandle

impl Measure<i64, NoopLabelSet> for NoopMeasure<i64>[src]

type Handle = NoopHandle<i64>

The handle type for the implementing Measure.

fn measurement(&self, value: i64) -> Measurement<NoopLabelSet>[src]

Returns a no-op Measurement.

fn acquire_handle(&self, _labels: &NoopLabelSet) -> Self::Handle[src]

Returns a NoopHandle

Auto Trait Implementations

impl<T> RefUnwindSafe for NoopMeasure<T> where
    T: RefUnwindSafe

impl<T> Send for NoopMeasure<T> where
    T: Send

impl<T> Sync for NoopMeasure<T> where
    T: Sync

impl<T> Unpin for NoopMeasure<T> where
    T: Unpin

impl<T> UnwindSafe for NoopMeasure<T> where
    T: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,