pub trait AsyncStream:
AsyncRead
+ AsyncWrite
+ Send
+ Unpin { }Expand description
A type-erased async stream that supports both reading and writing.
Used throughout the chain engine so that heterogeneous stream types —
plain tokio::net::TcpStream, TLS-wrapped streams, etc. — can all flow
through the same proxy chaining code without monomorphization.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".