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
last_handshake_time: Option<DateTime<Utc>>
Time of the last handshake/rekey with this peer.
rx_bytes: u64
Number of bytes received from this peer.
tx_bytes: u64
Number of bytes transmitted to this peer.
Trait Implementations
impl Debug for PeerStats
[src]
impl Debug for PeerStats
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for PeerStats
[src]
impl PartialEq for PeerStats
fn eq(&self, other: &PeerStats) -> bool
[src]
fn eq(&self, other: &PeerStats) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PeerStats) -> bool
[src]
fn ne(&self, other: &PeerStats) -> bool
This method tests for !=
.
impl Eq for PeerStats
[src]
impl Eq for PeerStats
impl Clone for PeerStats
[src]
impl Clone for PeerStats