pub struct BoundValueRecorder<T> { /* private fields */ }
Available on crate feature
metrics
only.Expand description
BoundValueRecorder is a bound instrument for recording per-request non-additive values.
It inherits the Unbind function from syncBoundInstrument.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for BoundValueRecorder<T>
impl<T: Clone> Clone for BoundValueRecorder<T>
Source§fn clone(&self) -> BoundValueRecorder<T>
fn clone(&self) -> BoundValueRecorder<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 BoundValueRecorder<T>
impl<T> !RefUnwindSafe for BoundValueRecorder<T>
impl<T> Send for BoundValueRecorder<T>where
T: Send,
impl<T> Sync for BoundValueRecorder<T>where
T: Sync,
impl<T> Unpin for BoundValueRecorder<T>where
T: Unpin,
impl<T> !UnwindSafe for BoundValueRecorder<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.