#io #source #multiple #adapter #write #rust-lang

broadcast

A rustlang adapter for writing to multiple sources

1 unstable release

Uses old Rust 2015

0.1.0 Dec 15, 2015

#14 in #rust-lang

Download history 1138/week @ 2024-07-24 3694/week @ 2024-07-31 2748/week @ 2024-08-07 1948/week @ 2024-08-14 1368/week @ 2024-08-21 1166/week @ 2024-08-28 3252/week @ 2024-09-04 1426/week @ 2024-09-11 2506/week @ 2024-09-18 2841/week @ 2024-09-25 2041/week @ 2024-10-02 1324/week @ 2024-10-09 2501/week @ 2024-10-16 2874/week @ 2024-10-23 2012/week @ 2024-10-30 2798/week @ 2024-11-06

10,453 downloads per month
Used in sgxs-tools

MIT license

4KB

broadcast

Build Status Coverage Status

A rustlang adapter for writing to multiple sources, adapted from the standard library's std::io::Write#broadcast 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 broadcaster = writera.broadcast(writerb);

In broadcast this looks like

let broadcaster = broadcast::BroadcastWriter::new(
  writera, writerb
);

Doug Tangren (softprops) 2015

No runtime deps