pub struct ChannelMetrics<T> { /* private fields */ }Expand description
Metrics produced by a channel.
You can enumerate the metrics using the emit::metric::Source implementation. See emit::metric for details.
Trait Implementations§
Source§impl<T: Channel> Source for ChannelMetrics<T>
impl<T: Channel> Source for ChannelMetrics<T>
Source§fn sample_metrics<S: Sampler>(&self, sampler: S)
fn sample_metrics<S: Sampler>(&self, sampler: S)
Produce a current sample for all metrics in the source.
Source§fn and_sample<U>(self, other: U) -> And<Self, U>where
Self: Sized,
fn and_sample<U>(self, other: U) -> And<Self, U>where
Self: Sized,
Chain this source to
other, sampling metrics from both.Auto Trait Implementations§
impl<T> Freeze for ChannelMetrics<T>
impl<T> RefUnwindSafe for ChannelMetrics<T>
impl<T> Send for ChannelMetrics<T>where
T: Send,
impl<T> Sync for ChannelMetrics<T>where
T: Send,
impl<T> Unpin for ChannelMetrics<T>
impl<T> UnwindSafe for ChannelMetrics<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more