[−][src]Trait c3p0_pool_pg::r2d2::postgres::tls::TlsHandshake
A trait implemented by types that can initiate a TLS session over a Postgres stream.
Required methods
fn tls_handshake(
&self,
host: &str,
stream: Stream
) -> Result<Box<dyn TlsStream + 'static>, Box<dyn Error + 'static + Sync + Send>>
&self,
host: &str,
stream: Stream
) -> Result<Box<dyn TlsStream + 'static>, Box<dyn Error + 'static + Sync + Send>>
Performs a client-side TLS handshake, returning a wrapper around the provided stream.
The host portion of the connection parameters is provided for hostname verification.
Implementations on Foreign Types
impl<T> TlsHandshake for Box<T> where
T: TlsHandshake + ?Sized,
[src]
T: TlsHandshake + ?Sized,
fn tls_handshake(
&self,
host: &str,
stream: Stream
) -> Result<Box<dyn TlsStream + 'static>, Box<dyn Error + 'static + Sync + Send>>
[src]
&self,
host: &str,
stream: Stream
) -> Result<Box<dyn TlsStream + 'static>, Box<dyn Error + 'static + Sync + Send>>