[][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.

Fields

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,