2 releases
0.1.1 | Aug 17, 2021 |
---|---|
0.1.0 | Aug 17, 2021 |
#828 in Asynchronous
19,437 downloads per month
Used in 41 crates
(4 directly)
9KB
190 lines
io_tee
A very simple library which supports teeing Read
, BufRead
, and Seek
readers and Write
rs.
Implementations respect the underlying reader or writer's overriden methods.
For convenience, ReadExt
and WriteExt
traits are provided to easily construct TeeReader
and TeeWriter
from
existing Read
and Write
streams.
License
Licensed under either of
- Apache License, Version 2.0
- MIT license at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
Various helpers for teeing readers and writers.
TeeReader
and TeeWriter
respect the underlying Read
er and Write
er's method overrides.
(Except for vectored, because I haven't got around to that yet)
TeeReader
supports teeing Read
, BufRead
and Seek
readers.