pub struct Statistics {
pub in_bytes: AtomicU64,
pub out_bytes: AtomicU64,
pub in_messages: AtomicU64,
pub out_messages: AtomicU64,
pub connects: AtomicU64,
}
Expand description
Represents statistics for the instance of the client throughout its lifecycle.
Fields§
§in_bytes: AtomicU64
Number of bytes received. This does not include the protocol overhead.
out_bytes: AtomicU64
Number of bytes sent. This doe not include the protocol overhead.
in_messages: AtomicU64
Number of messages received.
out_messages: AtomicU64
Number of messages sent.
connects: AtomicU64
Number of times connection was established. Initial connect will be counted as well, then all successful reconnects.
Trait Implementations§
source§impl Debug for Statistics
impl Debug for Statistics
source§impl Default for Statistics
impl Default for Statistics
source§fn default() -> Statistics
fn default() -> Statistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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