Trait postgres::tls::TlsConnect [−][src]
An asynchronous function wrapping a stream in a TLS session.
Associated Types
type Stream: TlsStream + Unpin
[src]
The stream returned by the future.
type Error: Into<Box<dyn Error + 'static + Sync + Send, Global>>
[src]
The error returned by the future.
type Future: Future
[src]
The future returned by the connector.
Required methods
pub fn connect(self, stream: S) -> Self::Future
[src]
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
pub fn connect(self, S) -> NoTlsFutureⓘNotable traits for NoTlsFuture
impl Future for NoTlsFuture type Output = Result<NoTlsStream, NoTlsError>;
[src]
Notable traits for NoTlsFuture
impl Future for NoTlsFuture type Output = Result<NoTlsStream, NoTlsError>;