[−][src]Trait kpgres::tls::MakeTlsConnect
A constructor of TlsConnect
ors.
Associated Types
type Stream: TlsStream + Unpin
The stream type created by the TlsConnect
implementation.
type TlsConnect: TlsConnect<S, Stream = Self::Stream>
The TlsConnect
implementation created by this type.
type Error: Into<Box<dyn Error>>
The error type returned by the TlsConnect
implementation.
Required methods
fn make_tls_connect(
&mut self,
domain: &str
) -> Result<Self::TlsConnect, Self::Error>
&mut self,
domain: &str
) -> Result<Self::TlsConnect, Self::Error>
Creates a new TlsConnect
or.
The domain name is provided for certificate verification and SNI.