Trait bytecodec::io::IoDecodeExt [] [src]

pub trait IoDecodeExt: Decode {
    fn decode_from_read_buf<B>(
        &mut self,
        buf: &mut ReadBuf<B>
    ) -> Result<Option<Self::Item>>
    where
        B: AsRef<[u8]>
, { ... }
fn decode_exact<R: Read>(&mut self, reader: R) -> Result<Self::Item> { ... } }

An extension of Decode trait to aid decodings involving I/O.

Provided Methods

Decodes an item from the given read buffer.

Decodes an item from the given reader.

This method reads only minimal bytes required to decode an item.

Note that this is a blocking method.

Implementors