Trait tokio_postgres::tls::MakeTlsConnect [−][src]
pub trait MakeTlsConnect<S> { type Stream: TlsStream + Unpin; type TlsConnect: TlsConnect<S, Stream = Self::Stream>; type Error: Into<Box<dyn Error + Sync + Send>>; fn make_tls_connect(
&mut self,
domain: &str
) -> Result<Self::TlsConnect, Self::Error>; }
A constructor of TlsConnect
ors.
Requires the runtime
Cargo feature (enabled by default).
Associated Types
type Stream: TlsStream + Unpin
[src]
The stream type created by the TlsConnect
implementation.
type TlsConnect: TlsConnect<S, Stream = Self::Stream>
[src]
The TlsConnect
implementation created by this type.
type Error: Into<Box<dyn Error + Sync + Send>>
[src]
The error type returned by the TlsConnect
implementation.
Required methods
fn make_tls_connect(
&mut self,
domain: &str
) -> Result<Self::TlsConnect, Self::Error>
[src]
&mut self,
domain: &str
) -> Result<Self::TlsConnect, Self::Error>
Creates a new TlsConnect
or.
The domain name is provided for certificate verification and SNI.
Implementors
impl<S> MakeTlsConnect<S> for NoTls
[src]
impl<S> MakeTlsConnect<S> for NoTls
[src]