Expand description
Given two things, one of which implements std::io::Read and other implements std::io::Write, make a single socket-like object which implmenets Read + Write. Note that you can’t write to it while waiting for data to come from read part.
There is also AsyncRead / AsyncWrite analogue, see ReadWriteAsync struct.
Structs§
- Read
Write - Combined reader and writer
- Read
Write Asyncstd - Combined async reader and writer,
futures 0.3version. Note that this struct is only present inreadwriteif “asyncstd” Cargo feature is enabled. - Read
Write Tokio - Combined async reader and writer,
tokio 1version. Note that this struct is only present inreadwriteif “tokio” Cargo feature is enabled.