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::chainandtokio::io::AsyncReadExt::takebut also passes through writes. - Useful with
Read + Writeobjects liketokio::net::TcpStreamandtokio_rustls::TlsStream.
§Changelog
- v1.0.0 - Stable API.
- v0.1.0 - Initial release. Moved code from
fixed-buffer-tokio.
§TO DO
§Release Process
- Edit
Cargo.tomland bump version number. - Run
../release.sh
Structs§
- Async
Read Write Chain - A wrapper for a pair of structs, R and RW.
- Async
Read Write Take - Wraps a
tokio::io::AsyncRead + tokio::io::AsyncWritestruct. Passes through reads and writes to the struct. Limits the number of bytes that can be read.