[][src]Struct libp2p_identify::IdentifyInfo

pub struct IdentifyInfo {
    pub public_key: PublicKey,
    pub protocol_version: String,
    pub agent_version: String,
    pub listen_addrs: Vec<Multiaddr>,
    pub protocols: Vec<String>,

Information of a peer sent in Identify protocol responses.


public_key: PublicKey

The public key underlying the peer's PeerId.

protocol_version: String

Version of the protocol family used by the peer, e.g. ipfs/1.0.0 or polkadot/1.0.0.

agent_version: String

Name and version of the peer, similar to the User-Agent header in the HTTP protocol.

listen_addrs: Vec<Multiaddr>

The addresses that the peer is listening on.

protocols: Vec<String>

The list of protocols supported by the peer, e.g. /ipfs/ping/1.0.0.

Trait Implementations

impl Clone for IdentifyInfo[src]

impl Debug for IdentifyInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,