pub struct PeerStats {
pub last_handshake_time: Option<DateTime<Utc>>,
pub rx_bytes: u64,
pub tx_bytes: u64,
/* private fields */
}
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<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 Eq for PeerStats
impl StructuralPartialEq for PeerStats
Auto Trait Implementations§
impl Freeze for PeerStats
impl RefUnwindSafe for PeerStats
impl Send for PeerStats
impl Sync for PeerStats
impl Unpin for PeerStats
impl UnwindSafe for PeerStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more