logo
pub struct UpDownCounterBuilder<'a, T> { /* private fields */ }
This is supported on crate feature metrics only.
Expand description

Configuration for a new up down counter.

Implementations

Set the description for this counter

Set the unit for this counter.

Creates a new counter instrument.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.