Struct opentelemetry::metrics::UpDownCounter
source · [−]pub struct UpDownCounter<T>(_);
Available on crate feature
metrics
only.Expand description
An instrument that records increasing or decreasing values.
Implementations
sourceimpl<T> UpDownCounter<T>
impl<T> UpDownCounter<T>
Trait Implementations
sourceimpl<T> Clone for UpDownCounter<T>where
T: Clone,
impl<T> Clone for UpDownCounter<T>where
T: Clone,
sourcefn clone(&self) -> UpDownCounter<T>
fn clone(&self) -> UpDownCounter<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T> Debug for UpDownCounter<T>where
T: Debug,
impl<T> Debug for UpDownCounter<T>where
T: Debug,
sourceimpl 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.
sourcefn try_from(
builder: InstrumentBuilder<'_, UpDownCounter<f64>>
) -> Result<UpDownCounter<f64>, <UpDownCounter<f64> as TryFrom<InstrumentBuilder<'_, UpDownCounter<f64>>>>::Error>
fn try_from(
builder: InstrumentBuilder<'_, UpDownCounter<f64>>
) -> Result<UpDownCounter<f64>, <UpDownCounter<f64> as TryFrom<InstrumentBuilder<'_, UpDownCounter<f64>>>>::Error>
Performs the conversion.
sourceimpl 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.
sourcefn try_from(
builder: InstrumentBuilder<'_, UpDownCounter<i64>>
) -> Result<UpDownCounter<i64>, <UpDownCounter<i64> as TryFrom<InstrumentBuilder<'_, UpDownCounter<i64>>>>::Error>
fn try_from(
builder: InstrumentBuilder<'_, UpDownCounter<i64>>
) -> Result<UpDownCounter<i64>, <UpDownCounter<i64> as TryFrom<InstrumentBuilder<'_, UpDownCounter<i64>>>>::Error>
Performs the conversion.
Auto Trait Implementations
impl<T> !RefUnwindSafe for UpDownCounter<T>
impl<T> Send for UpDownCounter<T>
impl<T> Sync for UpDownCounter<T>
impl<T> Unpin for UpDownCounter<T>
impl<T> !UnwindSafe for UpDownCounter<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more