Skip to main content

InstrumentedChannelMetric

Trait InstrumentedChannelMetric 

Source
pub trait InstrumentedChannelMetric {
    // Required method
    fn bump(&self);
}
Available on crate feature async only.
Expand description

A trait describing a metric that can be used with an instrumented_unbounded_channel.

Required Methods§

Source

fn bump(&self)

Bump the metric, increasing the count of operators (send or receives) that occurred.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§