pub struct StreamStats {
pub msgs_sent: u64,
pub msgs_recv: u64,
pub bytes_sent: u64,
pub bytes_recv: u64,
}
Expand description
A set of simple statistics related to a stream.
Fields§
§msgs_sent: u64
The number of all messages sent.
msgs_recv: u64
The number of all messages received.
bytes_sent: u64
The number of all bytes sent.
bytes_recv: u64
The number of all bytes received.
Trait Implementations§
Source§impl Clone for StreamStats
impl Clone for StreamStats
Source§fn clone(&self) -> StreamStats
fn clone(&self) -> StreamStats
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 StreamStats
impl Debug for StreamStats
Source§impl PartialEq for StreamStats
impl PartialEq for StreamStats
impl Eq for StreamStats
impl StructuralPartialEq for StreamStats
Auto Trait Implementations§
impl Freeze for StreamStats
impl RefUnwindSafe for StreamStats
impl Send for StreamStats
impl Sync for StreamStats
impl Unpin for StreamStats
impl UnwindSafe for StreamStats
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