Struct genio::util::RepeatBytes [] [src]

pub struct RepeatBytes<B> { /* fields omitted */ }

Reader repeating a sequence of bytes infinitely.

Trait Implementations

impl<B: AsRef<[u8]>> Read for RepeatBytes<B>
[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