#io

tee

An adapter for readers which delegate reads to a writer

1 unstable release

Uses old Rust 2015

0.1.0 Dec 15, 2015

#146 in #io

Download history 2866/week @ 2021-02-24 1992/week @ 2021-03-03 4412/week @ 2021-03-10 1688/week @ 2021-03-17 383/week @ 2021-03-24 927/week @ 2021-03-31 1375/week @ 2021-04-07 1476/week @ 2021-04-14 1154/week @ 2021-04-21 974/week @ 2021-04-28 1099/week @ 2021-05-05 1567/week @ 2021-05-12 509/week @ 2021-05-19 1429/week @ 2021-05-26 732/week @ 2021-06-02 769/week @ 2021-06-09

6,828 downloads per month
Used in 3 crates

MIT license

4KB

Tee

Build Status Coverage Status

A rustlang adapter for readers which delegate read bytes to a writer, adapted from the standard library's std::io::Read#tee which has since been deprecated.

api docs

rustdoc api documentation can be found here

examples

The currently unstable/deprecated std library function looks like this

let tee_reader = reader.tee(writer);

In broadcast this looks like

let tee_reader = tee::TeeReader::new(reader, writer);

Doug Tangren (softprops) 2015

No runtime deps