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

An encodable exemplar value.

Required Methods§

source

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

Encode the given instance in the OpenMetrics text encoding.

Implementations on Foreign Types§

source§

impl EncodeExemplarValue for f64

source§

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

source§

impl EncodeExemplarValue for u64

source§

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

Implementors§