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

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

A constructor of TlsConnectors.

Requires the runtime Cargo feature (enabled by default).

Associated Types

The stream type created by the TlsConnect implementation.

The TlsConnect implementation created by this type.

The error type returned by the TlsConnect implementation.

Required methods

Creates a new TlsConnector.

The domain name is provided for certificate verification and SNI.

Implementors