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

pub struct NoopLabelSet {}

A no-op instance of LabelSet.

Trait Implementations

impl Clone for NoopLabelSet[src]

impl<T: Into<MeasurementValue> + 'static> Counter<T, NoopLabelSet> for NoopCounter<T>[src]

type Handle = NoopHandle<T>

The handle type for the implementing Counter.

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

Returns a no-op Measurement.

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

Returns a NoopHandle

impl Debug for NoopLabelSet[src]

impl Gauge<f64, NoopLabelSet> for NoopGauge<f64>[src]

type Handle = NoopHandle<f64>

The handle type for the implementing Gauge.

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 Gauge<i64, NoopLabelSet> for NoopGauge<i64>[src]

type Handle = NoopHandle<i64>

The handle type for the implementing Gauge.

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

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

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

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

Ignores all recorded measurement values.

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

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

Ignores all measurement values and labels.

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

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

Ignores all measurement values and labels.

impl LabelSet for NoopLabelSet[src]

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

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<F> Instrument for F[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>,