[][src]Trait libp2p_core::connection::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...

Implementors

impl ConnectionInfo for PeerId[src]

type PeerId = PeerId

Loading content...