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: PeerId
Peer identifier
addresses: Vec<String>
Peer’s addresses
connected_at: Instant
Connection timestamp
last_seen: Instant
Last seen timestamp
status: ConnectionStatus
Connection 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