[−][src]Function trust_dns_rustls::tls_stream::tls_from_stream
pub fn tls_from_stream<S: Session>(
stream: TokioTlsStream<TokioTcpStream, S>,
peer_addr: SocketAddr
) -> (TlsStream<S>, BufStreamHandle)
Initializes a TlsStream with an existing tokio_tls::TlsStream.
This is intended for use with a TlsListener and Incoming connections