Trait bytecodec::TaggedDecode [−][src]
This trait allows for decoding tagged items from a byte sequence incrementally.
Associated Types
Loading content...Required methods
fn start_decoding(&mut self, tag: Self::Tag) -> Result<()>
[src]
Prepares to start decoding an item tagged by tag
.
Errors
The following errors may be returned by the decoder:
ErrorKind::InvalidInput
:- Unexpected tag was passed
ErrorKind::IncompleteDecoding
:- The previous decoding process has not been completed
ErrorKind::DecoderTerminated
:- The decoder has terminated (i.e., cannot decode any more items)
ErrorKind::Other
:- Other errors has occurred