Trait libp2p_rs::core::secure_io::SecureInfo[][src]

pub trait SecureInfo {
    pub fn local_peer(&self) -> PeerId;
pub fn remote_peer(&self) -> PeerId;
pub fn local_priv_key(&self) -> Keypair;
pub fn remote_pub_key(&self) -> PublicKey; }

SecureInfo provides the underlying secure information of a secure connection.

The connection upgraded by secure stream, e.g. SecIo, must implement this trait.

Required methods

pub fn local_peer(&self) -> PeerId[src]

pub fn remote_peer(&self) -> PeerId[src]

pub fn local_priv_key(&self) -> Keypair[src]

pub fn remote_pub_key(&self) -> PublicKey[src]

Loading content...

Implementors

impl<A, B> SecureInfo for EitherOutput<A, B> where
    B: SecureInfo,
    A: SecureInfo
[src]

impl<C> SecureInfo for Mplex<C>[src]

impl<S> SecureInfo for SecioOutput<S>[src]

impl<T> SecureInfo for PlainTextOutput<T>[src]

impl<T> SecureInfo for Yamux<T>[src]

Loading content...