Struct std::io::util::TeeReaderExperimental
[-]
[+]
[src]
pub struct TeeReader<R, W> { // some fields omitted }
A Reader
which forwards input from another Reader
, passing it along to
a Writer
as well. Similar to the tee(1)
command.
Methods
impl<R: Reader, W: Writer> TeeReader<R, W>
fn new(r: R, w: W) -> TeeReader<R, W>
Creates a new TeeReader
fn into_inner(self) -> (R, W)
Consumes the TeeReader
, returning the underlying Reader
and
Writer
.
fn unwrap(self) -> (R, W)
Deprecated, use into_inner() instead