pub struct BoundCounter<T> { /* private fields */ }
Available on crate feature
metrics
only.Expand description
BoundCounter is a bound instrument for counters.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for BoundCounter<T>
impl<T: Clone> Clone for BoundCounter<T>
Source§fn clone(&self) -> BoundCounter<T>
fn clone(&self) -> BoundCounter<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for BoundCounter<T>
impl<T> !RefUnwindSafe for BoundCounter<T>
impl<T> Send for BoundCounter<T>where
T: Send,
impl<T> Sync for BoundCounter<T>where
T: Sync,
impl<T> Unpin for BoundCounter<T>where
T: Unpin,
impl<T> !UnwindSafe for BoundCounter<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§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.