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§
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)
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.