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

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

A no-op instance of a Counter.

Trait Implementations

impl<T: Clone> Clone for NoopCounter<T>[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<T: Debug> Debug for NoopCounter<T>[src]

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

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

Ignores all recorded measurement values.

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for NoopCounter<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>,