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