Crate readwrite

Source
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§

ReadWrite
Combined reader and writer
ReadWriteAsyncstd
Combined async reader and writer, futures 0.3 version. Note that this struct is only present in readwrite if “asyncstd” Cargo feature is enabled.
ReadWriteTokio
Combined async reader and writer, tokio 1 version. Note that this struct is only present in readwrite if “tokio” Cargo feature is enabled.