pub struct CounterBuilder<'a, T> { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Configuration for building a counter.
Implementations§
Source§impl<'a, T> CounterBuilder<'a, T>
impl<'a, T> CounterBuilder<'a, T>
Sourcepub fn with_description<S: Into<String>>(self, description: S) -> Self
pub fn with_description<S: Into<String>>(self, description: S) -> Self
Set the description for this counter
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for CounterBuilder<'a, T>
impl<'a, T> !RefUnwindSafe for CounterBuilder<'a, T>
impl<'a, T> Send for CounterBuilder<'a, T>where
T: Send,
impl<'a, T> Sync for CounterBuilder<'a, T>where
T: Sync,
impl<'a, T> Unpin for CounterBuilder<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for CounterBuilder<'a, 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> 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.