Struct genio::util::Chain [] [src]

pub struct Chain<F, S> { /* fields omitted */ }

Chains two readers.

All reads are forwarded to the first reader until it returns end. Then all other reads are forwarded to the second reader.

Methods

impl<F: Read, S: Read> Chain<F, S>
[src]

Creates chain of readers.

Trait Implementations

impl<F: Read, S: Read> Read for Chain<F, S>
[src]

Value of this type is returned when read() fails. Read more

Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more

Read the exact number of bytes required to fill buf. Read more

Hints whether there are at least at_least bytes available. Read more

Chains another reader after self. When self ends (returns Ok(0)), the other reader will provide bytes to read. Read more

Reads all bytes into any type that can be extended by a reader. This is more generic than the case of std::io and might enable some optimizations. Read more

Creates a "by reference" adaptor for this instance of Read. Read more