[−][src]Trait tokio_postgres::tls::TlsConnect
An asynchronous function wrapping a stream in a TLS session.
Associated Types
type Stream: AsyncRead + AsyncWrite + Unpin
The stream returned by the future.
type Error: Into<Box<dyn Error + Sync + Send>>
The error returned by the future.
type Future: Future<Output = Result<(Self::Stream, ChannelBinding), Self::Error>>
The future returned by the connector.
Required methods
fn connect(self, stream: S) -> Self::Future
Returns a future performing a TLS handshake over the stream.
Implementors
impl<S> TlsConnect<S> for NoTls
[src]
type Stream = NoTlsStream
type Error = NoTlsError
type Future = NoTlsFuture
ⓘImportant traits for NoTlsFuturefn connect(self, _: S) -> NoTlsFuture
[src]
ⓘImportant traits for NoTlsFuture