pub fn tls_from_stream<S>(
stream: TlsStream<AsyncIoStdAsTokio<S>>,
peer_addr: SocketAddr,
) -> (TcpStream<AsyncIoTokioAsStd<TlsStream<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