Separate TcpStream + SslStream into read and write components
问题 I'm trying to make client program that communicates with a server using a TcpStream wrapped by a openssl::ssl::SslStream (from crates.io). It should wait for read , and process data sent from the server if it was received without delay . At the same time, it should be able to send messages to the server regardless of reading. I tried some methods such as Passing single stream to both read and write threads. Both read and write methods require a mutable reference, so I couldn't pass a single