pub struct AtomicObservableGaugeI64(/* private fields */);
Expand description
Observable gauge based on std::sync::atomic::AtomicI64.
Implementations§
source§impl AtomicObservableGaugeI64
impl AtomicObservableGaugeI64
sourcepub fn new(
meter: &Meter,
name: impl Into<Cow<'static, str>>,
initial_value: i64,
) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeI64, ObservableGauge<i64>, i64>
pub fn new( meter: &Meter, name: impl Into<Cow<'static, str>>, initial_value: i64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeI64, ObservableGauge<i64>, i64>
Construct a new ObsGaugeAtomicI64, and associated opentelemetry metric. Note: If you would like any attributes applied to the metric reporting, please set them with the versioned_meter api before passing the meter into this constructor.
Trait Implementations§
source§impl Clone for AtomicObservableGaugeI64
impl Clone for AtomicObservableGaugeI64
source§fn clone(&self) -> AtomicObservableGaugeI64
fn clone(&self) -> AtomicObservableGaugeI64
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 moreAuto Trait Implementations§
impl Freeze for AtomicObservableGaugeI64
impl !RefUnwindSafe for AtomicObservableGaugeI64
impl Send for AtomicObservableGaugeI64
impl Sync for AtomicObservableGaugeI64
impl Unpin for AtomicObservableGaugeI64
impl !UnwindSafe for AtomicObservableGaugeI64
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