pub trait Stream:
AsyncRead
+ AsyncWrite
+ Unpin
+ Send { }Implementations on Foreign Types§
impl Stream for TlsStream<TcpStream>
impl Stream for TlsStream<TcpStream>
impl Stream for UnixStream
A new trait, which can be used to represent Unix- and Tls encrypted TcpStreams.
This is necessary to write generic functions where both types can be used.