[][src]Trait libp2p::core::nodes::ConnectionInfo

pub trait ConnectionInfo {
    type PeerId: Eq + Hash;
    fn peer_id(&self) -> &Self::PeerId;
}

Information about a connection.

Associated Types

type PeerId: Eq + Hash

Identity of the node we are connected to.

Loading content...

Required methods

fn peer_id(&self) -> &Self::PeerId

Returns the identity of the node we are connected to on this connection.

Loading content...

Implementations on Foreign Types

impl<TConnInfo> ConnectionInfo for (TConnInfo, ConnectedPoint) where
    TConnInfo: ConnectionInfo
[src]

type PeerId = <TConnInfo as ConnectionInfo>::PeerId

Loading content...

Implementors

impl ConnectionInfo for PeerId[src]

type PeerId = PeerId

Loading content...