pub struct ConnectionStatistics {
pub messages_sent: AtomicU64,
pub messages_received: AtomicU64,
pub bytes_sent: AtomicU64,
pub bytes_received: AtomicU64,
pub errors: AtomicU64,
}Expand description
Connection statistics
Fields§
§messages_sent: AtomicU64Messages sent
messages_received: AtomicU64Messages received
bytes_sent: AtomicU64Bytes sent
bytes_received: AtomicU64Bytes received
errors: AtomicU64Errors encountered
Trait Implementations§
Source§impl Debug for ConnectionStatistics
impl Debug for ConnectionStatistics
Source§impl Default for ConnectionStatistics
impl Default for ConnectionStatistics
Source§fn default() -> ConnectionStatistics
fn default() -> ConnectionStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ConnectionStatistics
impl RefUnwindSafe for ConnectionStatistics
impl Send for ConnectionStatistics
impl Sync for ConnectionStatistics
impl Unpin for ConnectionStatistics
impl UnsafeUnpin for ConnectionStatistics
impl UnwindSafe for ConnectionStatistics
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