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

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

A no-op instance of a Gauge.

Trait Implementations

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 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<T> Instrument<NoopLabelSet> for NoopGauge<T>[src]

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

Ignores all measurement values and labels.

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

Auto Trait Implementations

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

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

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

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

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

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