Function trust_dns_native_tls::tls_stream::tls_from_stream [] [src]

pub fn tls_from_stream<E>(
    stream: TokioTlsStream<TokioTcpStream>,
    peer_addr: SocketAddr
) -> (TlsStream, BufStreamHandle<E>) where
    E: FromProtoError

Initializes a TlsStream with an existing tokio_tls::TlsStream.

This is intended for use with a TlsListener and Incoming connections