Struct opentelemetry::metrics::UpDownCounter
source · pub struct UpDownCounter<T>(/* private fields */);
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>
source§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>
source§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.
Auto Trait Implementations§
impl<T> Freeze for UpDownCounter<T>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)