Expand description
AsyncReadWriteExt
trait with chain_after
and take_rw
for tokio::io::Read + Write
structs.
§Features
forbid(unsafe_code)
- Good test coverage (100%)
- Like
tokio::io::AsyncReadExt::chain
andtokio::io::AsyncReadExt::take
but also passes through writes. - Useful with
Read + Write
objects liketokio::net::TcpStream
andtokio_rustls::TlsStream
.
§Changelog
- v0.1.0 - Initial release. Moved code from
fixed-buffer-tokio
.
§TO DO
§Release Process
- Edit
Cargo.toml
and bump version number. - Run
../release.sh
Structs§
- A wrapper for a pair of structs, R and RW.
- Wraps a
tokio::io::AsyncRead + tokio::io::AsyncWrite
struct. Passes through reads and writes to the struct. Limits the number of bytes that can be read.