pub trait WithMetrics: Sized {
// Provided method
fn with_metrics(self) -> MeteredWrapper<Self> { ... }
}Expand description
Extension trait for adding metrics to channels.
Provided Methods§
Sourcefn with_metrics(self) -> MeteredWrapper<Self>
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.