Trait prometheus_client::encoding::EncodeLabelValue

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

An encodable label value.

Required Methods§

source

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

Encode oneself into the given encoder.

Implementations on Foreign Types§

source§

impl EncodeLabelValue for &str

source§

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

source§

impl EncodeLabelValue for f64

source§

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

source§

impl EncodeLabelValue for i8

source§

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

source§

impl EncodeLabelValue for i16

source§

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

source§

impl EncodeLabelValue for i32

source§

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

source§

impl EncodeLabelValue for i64

source§

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

source§

impl EncodeLabelValue for i128

source§

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

source§

impl EncodeLabelValue for isize

source§

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

source§

impl EncodeLabelValue for u8

source§

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

source§

impl EncodeLabelValue for u16

source§

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

source§

impl EncodeLabelValue for u32

source§

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

source§

impl EncodeLabelValue for u64

source§

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

source§

impl EncodeLabelValue for u128

source§

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

source§

impl EncodeLabelValue for usize

source§

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

source§

impl EncodeLabelValue for String

source§

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

source§

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

source§

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

source§

impl<T> EncodeLabelValue for Option<T>

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§