pub struct ChannelStatistics {
pub messages_sent: usize,
pub messages_received: usize,
pub overflow_events: usize,
pub contention_count: usize,
pub current_length: usize,
pub capacity: usize,
pub throughput_ratio: f64,
}Expand description
Statistics snapshot for monitoring channel performance
Fields§
§messages_sent: usizeTotal number of messages successfully sent through the channel
messages_received: usizeTotal number of messages successfully received from the channel
overflow_events: usizeNumber of times the channel had to use overflow handling
contention_count: usizeNumber of contention events detected during operations
current_length: usizeCurrent number of messages in the channel
capacity: usizeMaximum capacity of the channel
throughput_ratio: f64Ratio of successful operations to total attempts
Trait Implementations§
Source§impl Clone for ChannelStatistics
impl Clone for ChannelStatistics
Auto Trait Implementations§
impl Freeze for ChannelStatistics
impl RefUnwindSafe for ChannelStatistics
impl Send for ChannelStatistics
impl Sync for ChannelStatistics
impl Unpin for ChannelStatistics
impl UnsafeUnpin for ChannelStatistics
impl UnwindSafe for ChannelStatistics
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