trait ReadAndWrite:
AsyncRead
+ AsyncWrite
+ StreamOps
+ Send
+ Sync { }Expand description
Helper trait to allow us to create a type-erased stream.
(Rust doesn’t allow “dyn AsyncRead + AsyncWrite”)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".