Trait postgres::tls::TlsConnect
source · [−]pub trait TlsConnect<S> {
type Stream: TlsStream + Unpin;
type Error: Into<Box<dyn Error + Sync + Send + 'static, Global>>;
type Future: Future
where
<Self::Future as Future>::Output == Result<Self::Stream, Self::Error>;
fn connect(self, stream: S) -> Self::Future;
}
Expand description
An asynchronous function wrapping a stream in a TLS session.
Required Associated Types
The error returned by the future.