Struct wgctrl_rs::PeerStats[][src]

pub struct PeerStats {
    pub last_handshake_time: Option<DateTime<Utc>>,
    pub rx_bytes: u64,
    pub tx_bytes: u64,
    // some fields omitted
}

Represents a single peer's current statistics (i.e. the data from the current session).

These are the attributes that will change over time; to update them, re-read the information from the interface.

Fields

Time of the last handshake/rekey with this peer.

Number of bytes received from this peer.

Number of bytes transmitted to this peer.

Trait Implementations

impl Debug for PeerStats
[src]

Formats the value using the given formatter. Read more

impl PartialEq for PeerStats
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PeerStats
[src]

impl Clone for PeerStats
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for PeerStats

impl Sync for PeerStats