Struct opentelemetry::metrics::UpDownCounterBuilder [−][src]
pub struct UpDownCounterBuilder<'a, T> { /* fields omitted */ }
This is supported on crate feature
metrics
only.Configuration for a new up down counter.
Implementations
impl<'a, T> UpDownCounterBuilder<'a, T>
[src]
impl<'a, T> UpDownCounterBuilder<'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 for this counter
pub fn try_init(self) -> Result<UpDownCounter<T>>
[src]
pub fn try_init(self) -> Result<UpDownCounter<T>>
[src]Creates a new counter instrument.
pub fn init(self) -> UpDownCounter<T>
[src]
pub fn init(self) -> UpDownCounter<T>
[src]Creates a new counter instrument.
Panics
This function panics if the instrument cannot be created. Use try_init if you want to handle errors.
Trait Implementations
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for UpDownCounterBuilder<'a, T>
impl<'a, T> Send for UpDownCounterBuilder<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for UpDownCounterBuilder<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for UpDownCounterBuilder<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> !UnwindSafe for UpDownCounterBuilder<'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>,