pub struct AtomicObservableGaugeU64(/* private fields */);
Expand description
Observable gauge based on std::sync::atomic::AtomicU64.
Implementations§
source§impl AtomicObservableGaugeU64
impl AtomicObservableGaugeU64
sourcepub fn new(
meter: &Meter,
name: impl Into<Cow<'static, str>>,
initial_value: u64,
) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeU64, ObservableGauge<u64>, u64>
pub fn new( meter: &Meter, name: impl Into<Cow<'static, str>>, initial_value: u64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeU64, ObservableGauge<u64>, u64>
Construct a new AtomicObservableGaugeU64, 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 AtomicObservableGaugeU64
impl Clone for AtomicObservableGaugeU64
source§fn clone(&self) -> AtomicObservableGaugeU64
fn clone(&self) -> AtomicObservableGaugeU64
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 AtomicObservableGaugeU64
impl !RefUnwindSafe for AtomicObservableGaugeU64
impl Send for AtomicObservableGaugeU64
impl Sync for AtomicObservableGaugeU64
impl Unpin for AtomicObservableGaugeU64
impl !UnwindSafe for AtomicObservableGaugeU64
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