Function trust_dns_openssl::tls_stream_from_existing_tls_stream [−][src]
pub fn tls_stream_from_existing_tls_stream<S: Connect>(
stream: AsyncIoTokioAsStd<TokioTlsStream<AsyncIoStdAsTokio<S>>>,
peer_addr: SocketAddr
) -> (TlsStream<AsyncIoStdAsTokio<S>>, BufStreamHandle)
Initializes a TlsStream with an existing tokio_tls::TlsStream.
This is intended for use with a TlsListener and Incoming connections