pub struct Encoder<'a, 'b> { /* private fields */ }
Expand description

Helper type for EncodeMetric, see EncodeMetric::encode.

Implementations§

Encode a metric suffix, e.g. in the case of Counter the suffic _total.

Signal that the metric has no suffix.

Encode a set of labels. Used by wrapper metric types like Family.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.