Struct opentelemetry::metrics::ValueObserverBuilder [−][src]
pub struct ValueObserverBuilder<'a, T> { /* fields omitted */ }
This is supported on crate feature
metrics
only.Configuration options for building a ValueObserver
Implementations
impl<'a, T> ValueObserverBuilder<'a, T>
[src]
impl<'a, T> ValueObserverBuilder<'a, T>
[src]pub fn with_description<S: Into<String>>(self, description: S) -> Self
[src]
pub fn with_description<S: Into<String>>(self, description: S) -> Self
[src]Set the description of this ValueObserver
pub fn try_init(self) -> Result<ValueObserver<T>>
[src]
pub fn try_init(self) -> Result<ValueObserver<T>>
[src]Create a ValueObserver
from this configuration.
pub fn init(self) -> ValueObserver<T>
[src]
pub fn init(self) -> ValueObserver<T>
[src]Trait Implementations
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for ValueObserverBuilder<'a, T>
impl<'a, T> Send for ValueObserverBuilder<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for ValueObserverBuilder<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for ValueObserverBuilder<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> !UnwindSafe for ValueObserverBuilder<'a, T>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,