Function hickory_proto::native_tls::tls_stream::tls_from_stream

source ยท
pub fn tls_from_stream<S: DnsTcpStream>(
    stream: TlsStream<AsyncIoStdAsTokio<S>>,
    peer_addr: SocketAddr,
) -> (TlsStream<S>, BufDnsStreamHandle)
Available on crate feature dns-over-native-tls only.
Expand description

Initializes a TlsStream with an existing tokio_tls::TlsStream.

This is intended for use with a TlsListener and Incoming connections