[][src]Struct tendermint::secret_connection::SecretConnection

pub struct SecretConnection<IoHandler: Read + Write + Send + Sync> { /* fields omitted */ }

Encrypted connection between peers in a Tendermint network

Methods

impl<IoHandler: Read + Write + Send + Sync> SecretConnection<IoHandler>[src]

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

Returns authenticated remote pubkey

pub fn new(
    handler: IoHandler,
    local_pubkey: &PublicKey,
    local_privkey: &dyn Signer<Signature>
) -> Result<SecretConnection<IoHandler>, Error>
[src]

Performs handshake and returns a new authenticated SecretConnection.

Trait Implementations

impl<IoHandler> Read for SecretConnection<IoHandler> where
    IoHandler: Read + Write + Send + Sync
[src]

impl<IoHandler> Write for SecretConnection<IoHandler> where
    IoHandler: Read + Write + Send + Sync
[src]

Auto Trait Implementations

impl<IoHandler> Send for SecretConnection<IoHandler>

impl<IoHandler> Sync for SecretConnection<IoHandler>

impl<IoHandler> Unpin for SecretConnection<IoHandler> where
    IoHandler: Unpin

impl<IoHandler> UnwindSafe for SecretConnection<IoHandler> where
    IoHandler: UnwindSafe

impl<IoHandler> RefUnwindSafe for SecretConnection<IoHandler> where
    IoHandler: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<R> ReadBytesExt for R where
    R: Read + ?Sized

impl<W> WriteBytesExt for W where
    W: Write + ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Typeable for T where
    T: Any