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 error returned by the future.