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

An encodable gauge value.

Required Methods§

source

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

Encode the given instance in the OpenMetrics text encoding.

Implementations on Foreign Types§

source§

impl EncodeGaugeValue for f64

source§

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

source§

impl EncodeGaugeValue for i64

source§

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

Implementors§