Module std::old_io::utilUnstable [-] [+] [src]

Utility implementations of Reader and Writer

Structs

ChainedReader

A Reader which chains input from multiple Readers, reading each to completion before moving onto the next.

IterReader

An adaptor converting an Iterator<u8> to a Reader.

LimitReader

Wraps a Reader, limiting the number of bytes that can be read from it.

MultiWriter

A Writer which multiplexes writes to a set of Writers.

NullReader

A Reader which is always at EOF, like /dev/null.

NullWriter

A Writer which ignores bytes written to it, like /dev/null.

TeeReader

A Reader which forwards input from another Reader, passing it along to a Writer as well. Similar to the tee(1) command.

ZeroReader

A Reader which returns an infinite stream of 0 bytes, like /dev/zero.

Functions

copy

Copies all data from a Reader to a Writer.