pub struct PeerInfo {
pub peer_id: PeerId,
pub addresses: Vec<String>,
pub connected_at: Instant,
pub last_seen: Instant,
pub status: ConnectionStatus,
pub protocols: Vec<String>,
}Expand description
Information about a connected peer
Fields§
§peer_id: PeerIdPeer identifier
addresses: Vec<String>Peer’s addresses
connected_at: InstantConnection timestamp
last_seen: InstantLast seen timestamp
status: ConnectionStatusConnection status
protocols: Vec<String>Supported protocols
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 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