Struct opentelemetry_api::metrics::UpDownCounter
source · pub struct UpDownCounter<T>(_);
Expand description
An instrument that records increasing or decreasing values.
Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for UpDownCounter<T>
impl<T: Clone> Clone for UpDownCounter<T>
source§fn clone(&self) -> UpDownCounter<T>
fn clone(&self) -> UpDownCounter<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Debug for UpDownCounter<T>where
T: Debug,
impl<T> Debug for UpDownCounter<T>where T: Debug,
source§impl TryFrom<InstrumentBuilder<'_, UpDownCounter<f64>>> for UpDownCounter<f64>
impl TryFrom<InstrumentBuilder<'_, UpDownCounter<f64>>> for UpDownCounter<f64>
§type Error = MetricsError
type Error = MetricsError
The type returned in the event of a conversion error.
source§fn try_from(
builder: InstrumentBuilder<'_, UpDownCounter<f64>>
) -> Result<Self, Self::Error>
fn try_from( builder: InstrumentBuilder<'_, UpDownCounter<f64>> ) -> Result<Self, Self::Error>
Performs the conversion.
source§impl TryFrom<InstrumentBuilder<'_, UpDownCounter<i64>>> for UpDownCounter<i64>
impl TryFrom<InstrumentBuilder<'_, UpDownCounter<i64>>> for UpDownCounter<i64>
§type Error = MetricsError
type Error = MetricsError
The type returned in the event of a conversion error.
source§fn try_from(
builder: InstrumentBuilder<'_, UpDownCounter<i64>>
) -> Result<Self, Self::Error>
fn try_from( builder: InstrumentBuilder<'_, UpDownCounter<i64>> ) -> Result<Self, Self::Error>
Performs the conversion.