pub struct ChannelStats {
pub items_sent: u64,
pub items_received: u64,
pub items_dropped: u64,
pub buffer_size: usize,
pub max_buffer_size: usize,
pub send_blocks: u64,
pub receive_blocks: u64,
}Expand description
Statistics for a streaming channel.
Fields§
§items_sent: u64Total items sent through the channel.
items_received: u64Total items received from the channel.
items_dropped: u64Items dropped due to backpressure.
buffer_size: usizeCurrent buffer size.
max_buffer_size: usizeMaximum buffer size reached.
send_blocks: u64Times sender blocked waiting for space.
receive_blocks: u64Times receiver blocked waiting for items.
Trait Implementations§
Source§impl Clone for ChannelStats
impl Clone for ChannelStats
Source§fn clone(&self) -> ChannelStats
fn clone(&self) -> ChannelStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelStats
impl Debug for ChannelStats
Source§impl Default for ChannelStats
impl Default for ChannelStats
Source§fn default() -> ChannelStats
fn default() -> ChannelStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChannelStats
impl RefUnwindSafe for ChannelStats
impl Send for ChannelStats
impl Sync for ChannelStats
impl Unpin for ChannelStats
impl UnwindSafe for ChannelStats
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