pub trait MetricsAttributes<T> {
type Iter<'a>: Iterator<Item = KeyValue>
where Self: 'a,
T: 'a;
// Required method
fn attributes<'a>(&'a self, t: &'a T) -> Self::Iter<'a>;
}
Expand description
Make metrics attributes from a type.
Required Associated Types§
Required Methods§
fn attributes<'a>(&'a self, t: &'a T) -> Self::Iter<'a>
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.