Enum bytecodec::ErrorKind
[−]
[src]
pub enum ErrorKind { InvalidInput, InconsistentState, UnexpectedEos, EncoderFull, DecoderTerminated, IncompleteDecoding, Other, }
Possible error kinds.
Variants
InvalidInput
Input is invalid.
Usually it indicates there is a problem outside of the encoder/decoder.
InconsistentState
Inconsistent state of the encoder/decoder.
Usually it indicates there is a bug in the encoder/decoder.
UnexpectedEos
Unexpected EOS.
A target stream has reached EOS despite there are some items to be encoded/decoded.
EncoderFull
Encoder is full.
The encoder cannot accept more items because it has some items to be encoded currently.
DecoderTerminated
Decoder has terminated.
The decoder cannot decode any more items.
IncompleteDecoding
A decoding process terminated incompletely.
Other
Other errors.
Trait Implementations
impl From<ErrorKind> for Error
impl Debug for ErrorKind
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ErrorKind
[src]
fn clone(&self) -> ErrorKind
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ErrorKind
[src]
impl PartialEq for ErrorKind
[src]
fn eq(&self, __arg_0: &ErrorKind) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.