Crate read_write_ext
source · [−]Expand description
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 (99%)
- Like
std::io::Read::chain
andstd::io::Read::take
but also passes through writes. - Useful with
Read + Write
objects likestd::net::TcpStream
andrustls::Stream
.
Changelog
- v0.1.1 -
take_rw
to takeu64
likestd::io::Read::take
. - v0.1.0 - Initial release. Moved code from
fixed-buffer
.
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 std::io::Read + std::io::Write
struct.
Passes through reads and writes to the struct.
Limits the number of bytes that can be read.