pub struct KadPeer {
pub node_id: PeerId,
pub multiaddrs: Vec<Multiaddr, Global>,
pub connection_ty: KadConnectionType,
}
Expand description
Information about a peer, as known by the sender.
Fields§
§node_id: PeerId
Identifier of the peer.
multiaddrs: Vec<Multiaddr, Global>
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.
Trait Implementations§
source§impl PartialEq<KadPeer> for KadPeer
impl PartialEq<KadPeer> for KadPeer
impl Eq for KadPeer
impl StructuralEq for KadPeer
impl StructuralPartialEq for KadPeer
Auto Trait Implementations§
impl RefUnwindSafe for KadPeer
impl Send for KadPeer
impl Sync for KadPeer
impl Unpin for KadPeer
impl UnwindSafe for KadPeer
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