Function wrap_tls

Source
pub async fn wrap_tls<'a>(
    strict_tls: bool,
    hostname: &str,
    alpn: &[&str],
    stream: impl SessionStream + 'static,
) -> Result<impl SessionStream + 'a>