Skip to main content

WithMetrics

Trait WithMetrics 

Source
pub trait WithMetrics: Sized {
    // Provided method
    fn with_metrics(self) -> MeteredWrapper<Self> { ... }
}
Expand description

Extension trait for adding metrics to channels.

Provided Methods§

Source

fn with_metrics(self) -> MeteredWrapper<Self>

Wrap this channel with metrics tracking.

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§

Source§

impl<T> WithMetrics for T