Trait tokio_postgres::tls::Handshake
[−]
[src]
pub trait Handshake: 'static + Sync + Send { fn handshake(self: Box<Self>,
host: &str,
stream: Stream)
-> BoxFuture<Box<TlsStream>, Box<Error + Sync + Send>>; }
A trait implemented by types that can manage TLS encryption for a stream.
Required Methods
fn handshake(self: Box<Self>,
host: &str,
stream: Stream)
-> BoxFuture<Box<TlsStream>, Box<Error + Sync + Send>>
host: &str,
stream: Stream)
-> BoxFuture<Box<TlsStream>, Box<Error + Sync + Send>>
Performs a TLS handshake, returning a wrapped stream.