Expand description
§read-write-ext
ReadWriteExt trait with chain_after and take_rw for std::io::Read + Write structs.
§Features
forbid(unsafe_code)- Depends only on
std. - Good test coverage (100%)
- Like
std::io::Read::chainandstd::io::Read::takebut also passes through writes. - Useful with
Read + Writeobjects likestd::net::TcpStreamandrustls::Stream.
§Changelog
- v1.0.0 - Stable API.
- v0.1.1 -
take_rwto takeu64likestd::io::Read::take. - v0.1.0 - Initial release. Moved code from
fixed-buffer.
§TO DO
§Release Process
- Edit
Cargo.tomland bump version number. - Run
../release.sh
Structs§
- Read
Write Chain - A wrapper for a pair of structs, R and RW.
- Read
Write Take - Wraps a
std::io::Read + std::io::Writestruct. Passes through reads and writes to the struct. Limits the number of bytes that can be read.