Struct pea2pea::PeerStats [−][src]
pub struct PeerStats { pub times_connected: AtomicUsize, pub msgs_sent: AtomicUsize, pub msgs_received: AtomicUsize, pub bytes_sent: AtomicU64, pub bytes_received: AtomicU64, pub failures: AtomicUsize, }
Expand description
Contains statistics related to a single peer.
Fields
times_connected: AtomicUsize
The number of times a connection with the peer has been established.
msgs_sent: AtomicUsize
The number of messages sent to the peer.
msgs_received: AtomicUsize
The number of messages received from the peer.
bytes_sent: AtomicU64
The number of bytes sent to the peer.
bytes_received: AtomicU64
The number of bytes received from the peer.
failures: AtomicUsize
The number of failures related to the peer.