Trait libp2p_core::connection::ConnectionInfo[][src]

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

Information about a connection.

Associated Types

type PeerId: Eq + Hash[src]

Identity of the node we are connected to.

Loading content...

Required methods

fn peer_id(&self) -> &Self::PeerId[src]

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