pub struct UpDownSumObserverBuilder<'a, T> { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Configuration options for building a UpDownSumObserver
Implementations§
Source§impl<'a, T> UpDownSumObserverBuilder<'a, T>
impl<'a, T> UpDownSumObserverBuilder<'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 of this UpDownSumObserver
Sourcepub fn try_init(self) -> Result<UpDownSumObserver<T>>
pub fn try_init(self) -> Result<UpDownSumObserver<T>>
Create a UpDownSumObserver
from this configuration.
Sourcepub fn init(self) -> UpDownSumObserver<T>
pub fn init(self) -> UpDownSumObserver<T>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for UpDownSumObserverBuilder<'a, T>
impl<'a, T> !RefUnwindSafe for UpDownSumObserverBuilder<'a, T>
impl<'a, T> Send for UpDownSumObserverBuilder<'a, T>where
T: Send,
impl<'a, T> Sync for UpDownSumObserverBuilder<'a, T>where
T: Sync,
impl<'a, T> Unpin for UpDownSumObserverBuilder<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for UpDownSumObserverBuilder<'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.