pub struct PeerInfo {
pub connected: bool,
pub time_since_last_seen: Duration,
pub time_since_first_seen: Duration,
pub time_since_disconnect: Option<Duration>,
}Expand description
Detailed information about a peer
Fields§
§connected: boolWhether the peer is currently connected
time_since_last_seen: DurationTime since last activity
time_since_first_seen: DurationTime since first discovery
time_since_disconnect: Option<Duration>Time since disconnect (if disconnected)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerInfo
impl RefUnwindSafe for PeerInfo
impl Send for PeerInfo
impl Sync for PeerInfo
impl Unpin for PeerInfo
impl UnsafeUnpin for PeerInfo
impl UnwindSafe for PeerInfo
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