kumo_prometheus::labels

Trait MetricLabel

Source
pub trait MetricLabel {
    // Required methods
    fn label_names() -> &'static [&'static str];
    fn emit_text_value(&self, target: &mut String, value: &str);
    fn emit_json_value(&self, target: &mut String, value: &str);
}

Required Methods§

Source

fn label_names() -> &'static [&'static str]

Source

fn emit_text_value(&self, target: &mut String, value: &str)

Source

fn emit_json_value(&self, target: &mut String, value: &str)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§