[][src]Trait c3p0_pool_pg::r2d2::postgres::tls::TlsHandshake

pub trait TlsHandshake: Debug {
    fn tls_handshake(
        &self,
        host: &str,
        stream: Stream
    ) -> Result<Box<dyn TlsStream + 'static>, Box<dyn Error + 'static + Sync + Send>>; }

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>>

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.

Loading content...

Implementations on Foreign Types

impl<T> TlsHandshake for Box<T> where
    T: TlsHandshake + ?Sized
[src]

Loading content...

Implementors

Loading content...