pub fn tls_stream_from_existing_tls_stream<S>(
stream: AsyncIoTokioAsStd<SslStream<AsyncIoStdAsTokio<S>>>,
peer_addr: SocketAddr,
) -> (TcpStream<AsyncIoTokioAsStd<SslStream<AsyncIoStdAsTokio<S>>>>, BufDnsStreamHandle)where
S: Connect,
Expand description
Initializes a TlsStream with an existing tokio_tls::TlsStream.
This is intended for use with a TlsListener and Incoming connections