Function trust_dns_proto::rustls::tls_stream::tls_from_stream
source · [−]pub fn tls_from_stream<S: DnsTcpStream>(
stream: S,
peer_addr: SocketAddr
) -> (TlsStream<S>, BufDnsStreamHandle)
This is supported on crate feature
dns-over-rustls
only.Expand description
Initializes a TlsStream with an existing tokio_tls::TlsStream.
This is intended for use with a TlsListener and Incoming connections