[][src]Trait postgres::tls::MakeTlsConnect

pub trait MakeTlsConnect<S> where
    <Self::TlsConnect as TlsConnect<S>>::Stream == Self::Stream
{ type Stream: Unpin + AsyncRead + AsyncWrite; type TlsConnect: TlsConnect<S>; type Error: Into<Box<dyn Error + 'static + Sync + Send>>; fn make_tls_connect(
        &mut self,
        domain: &str
    ) -> Result<Self::TlsConnect, Self::Error>; }

A constructor of TlsConnectors.

Requires the runtime Cargo feature (enabled by default).

Associated Types

type Stream: Unpin + AsyncRead + AsyncWrite

The stream type created by the TlsConnect implementation.

type TlsConnect: TlsConnect<S>

The TlsConnect implementation created by this type.

type Error: Into<Box<dyn Error + 'static + Sync + Send>>

The error type returned by the TlsConnect implementation.

Loading content...

Required methods

fn make_tls_connect(
    &mut self,
    domain: &str
) -> Result<Self::TlsConnect, Self::Error>

Creates a new TlsConnector.

The domain name is provided for certificate verification and SNI.

Loading content...

Implementors

impl<S> MakeTlsConnect<S> for NoTls[src]

Loading content...