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.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.