Struct wireguard_control::PeerStats [−][src]
pub struct PeerStats {
pub last_handshake_time: Option<SystemTime>,
pub rx_bytes: u64,
pub tx_bytes: u64,
}
Expand description
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<SystemTime>
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
Auto Trait Implementations
impl RefUnwindSafe for PeerStats
impl UnwindSafe for PeerStats
Blanket Implementations
Mutably borrows from an owned value. Read more