Trait libp2prs_core::secure_io::SecureInfo [−][src]
pub trait SecureInfo { fn local_peer(&self) -> PeerId; fn remote_peer(&self) -> PeerId; fn local_priv_key(&self) -> Keypair; 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
fn local_peer(&self) -> PeerId
[src]
fn remote_peer(&self) -> PeerId
[src]
fn local_priv_key(&self) -> Keypair
[src]
fn remote_pub_key(&self) -> PublicKey
[src]
Implementors
impl<A, B> SecureInfo for EitherOutput<A, B> where
A: SecureInfo,
B: SecureInfo,
[src]
A: SecureInfo,
B: SecureInfo,