Struct libp2p_kad::protocol::KadPeer [−][src]
pub struct KadPeer { pub public_key: PublicKey, pub node_id: PeerId, pub multiaddrs: Vec<Multiaddr>, pub connection_ty: KadConnectionType, pub certificates: Vec<Certificate>, }
Expand description
Information about a peer, as known by the sender.
Fields
public_key: PublicKey
node_id: PeerId
Identifier of the peer.
multiaddrs: Vec<Multiaddr>
The multiaddresses that the sender think can be used in order to reach the peer.
connection_ty: KadConnectionType
How the sender is connected to that remote.
certificates: Vec<Certificate>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KadPeer
impl UnwindSafe for KadPeer
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V