pub struct CounterBuilder<'a, T> { /* fields omitted */ }
This is supported on crate feature metrics
only.
Expand description
Configuration for building a counter.
Set the description for this counter
Set the unit for this counter.
Creates a new counter instrument.
Creates a new counter instrument.
This function panics if the instrument cannot be created. Use try_init if you want to
handle errors.
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,