Trait tokio_postgres::tls::Handshake [] [src]

pub trait Handshake: 'static + Sync + Send {
    fn handshake(
        self: Box<Self>,
        host: &str,
        stream: Stream
    ) -> Box<Future<Item = Box<TlsStream>, Error = Box<Error + Sync + Send>> + Send>; }

A trait implemented by types that can manage TLS encryption for a stream.

Required Methods

Performs a TLS handshake, returning a wrapped stream.

Implementors