Trait bytecodec::monolithic::MonolithicDecode
[−]
[src]
pub trait MonolithicDecode { type Item; fn monolithic_decode<R: Read>(&self, reader: R) -> Result<Self::Item>; }
This trait allows for decoding items monolithically from a source byte stream.
Although this has less flexibility than Decode
trait, it has the merit of being easy to implement.
Associated Types
type Item
The type of items to be monolithically decoded.
Required Methods
fn monolithic_decode<R: Read>(&self, reader: R) -> Result<Self::Item>
Decodes an item from the given reader.