Function trust_dns_native_tls::tls_stream::tls_from_stream
source · [−]pub fn tls_from_stream<S: Connect>(
stream: TokioTlsStream<AsyncIoStdAsTokio<S>>,
peer_addr: SocketAddr
) -> (TlsStream<S>, BufStreamHandle)
Expand description
Initializes a TlsStream with an existing tokio_tls::TlsStream.
This is intended for use with a TlsListener and Incoming connections