Trait postgres::tls::TlsConnect[][src]

pub trait TlsConnect<S> {
    type Stream: TlsStream + Unpin;
    type Error: Into<Box<dyn Error + Sync + Send + 'static, Global>>;
    type Future: Future;
    fn connect(self, stream: S) -> Self::Future;
}
Expand description

An asynchronous function wrapping a stream in a TLS session.

Associated Types

The stream returned by the future.

The error returned by the future.

The future returned by the connector.

Required methods

Returns a future performing a TLS handshake over the stream.

Implementors