Trait prometheus_client::encoding::EncodeLabelKey

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

An encodable label key.

Required Methods§

source

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

Encode oneself into the given encoder.

Implementations on Foreign Types§

source§

impl EncodeLabelKey for &str

source§

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

source§

impl EncodeLabelKey for String

source§

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

source§

impl<'a> EncodeLabelKey for Cow<'a, str>

source§

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

source§

impl<T> EncodeLabelKey for Box<T>
where for<'a> &'a T: EncodeLabelKey,

source§

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

source§

impl<T> EncodeLabelKey for Rc<T>
where for<'a> &'a T: EncodeLabelKey,

source§

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

source§

impl<T> EncodeLabelKey for Arc<T>
where for<'a> &'a T: EncodeLabelKey,

source§

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

Implementors§