[][src]Trait fluence_fork_libp2p_core::connection::ConnectionInfo

pub trait ConnectionInfo {
    type PeerId: Eq + Hash;
    pub 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

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