pub trait EncodeCounterValue {
    // Required method
    fn encode(&self, encoder: &mut CounterValueEncoder<'_>) -> Result<(), Error>;
}
Expand description

An encodable counter value.

Required Methods§

source

fn encode(&self, encoder: &mut CounterValueEncoder<'_>) -> Result<(), Error>

Encode the given instance in the OpenMetrics text encoding.

Implementations on Foreign Types§

source§

impl EncodeCounterValue for u64

source§

fn encode(&self, encoder: &mut CounterValueEncoder<'_>) -> Result<(), Error>

source§

impl EncodeCounterValue for f64

source§

fn encode(&self, encoder: &mut CounterValueEncoder<'_>) -> Result<(), Error>

Implementors§