Trait prometheus_client::encoding::EncodeLabel

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

An encodable label.

Required Methods§

source

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

Encode oneself into the given encoder.

Implementations on Foreign Types§

source§

impl<K: EncodeLabelKey, V: EncodeLabelValue> EncodeLabel for (K, V)

source§

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

Implementors§