Function establish_tls_connection

Source
pub async fn establish_tls_connection<S>(
    stream: S,
    domain: &str,
) -> Result<(TlsStream<S>, ChannelBinding), Error>
where S: AsyncRead + AsyncWrite + Unpin,
Available on (crate features direct-tls or starttls) and crate feature native-tls only.
Expand description

Establish TLS connection using native-tls