Struct bytecodec::io::BufferedIo [] [src]

pub struct BufferedIo<T> { /* fields omitted */ }

Buffered I/O stream.

Methods

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

[src]

Makes a new BufferedIo instance.

[src]

Executes an I/O operation on the inner stream.

"I/O operation" means "filling the read buffer" and "flushing the write buffer".

[src]

Returns true if the inner stream reaches EOS, otherwise false.

[src]

Returns true if the previous I/O operation on the inner stream would block, otherwise false.

Important traits for ReadBuf<B>
[src]

Returns a reference to the read buffer of the instance.

Important traits for ReadBuf<B>
[src]

Returns a mutable reference to the read buffer of the instance.

Important traits for WriteBuf<B>
[src]

Returns a reference to the write buffer of the instance.

Important traits for WriteBuf<B>
[src]

Returns a mutable reference to the write buffer of the instance.

Important traits for &'a mut W
[src]

Returns a reference to the inner stream of the instance.

Important traits for &'a mut W
[src]

Returns a mutable reference to the inner stream of the instance.

[src]

Takes ownership of the instance, and returns the inner stream.

Trait Implementations

impl<T: Debug> Debug for BufferedIo<T>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for BufferedIo<T> where
    T: Send

impl<T> Sync for BufferedIo<T> where
    T: Sync