Struct genio::std_impls::GenioIo [] [src]

pub struct GenioIo<T>(_);

Wrapper providing genio::Read + genio::Write traits for std::io::Read + std::io::Write types.

Methods

impl<T: Read + Write> GenioIo<T>
[src]

Wraps std reader+writer into genio reader+writer.

Unwraps std reader+writer into genio reader+writer.

Trait Implementations

impl<T: Read> Read for GenioIo<T>
[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

impl<T: Write> Write for GenioIo<T>
[src]

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

Value of this type is returned when flush() fails. In case of low-level writers flush often does nothing and therefore doesn't return error, so this type might be Void. Read more

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this Write.

Hints the writer how much bytes will be written after call to this function. At least min bytes should be written after the call to this function and if max is Some(x) than at most x bytes should be written. Read more