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 From<ErrorKind> for Error
impl Debug for ErrorKind
[src]
impl Debug for ErrorKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ErrorKind
[src]
impl Clone for ErrorKind
fn clone(&self) -> ErrorKind
[src]
fn clone(&self) -> ErrorKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ErrorKind
[src]
impl Copy for ErrorKind
impl PartialEq for ErrorKind
[src]
impl PartialEq for ErrorKind
fn eq(&self, other: &ErrorKind) -> bool
[src]
fn eq(&self, other: &ErrorKind) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for ErrorKind
[src]
impl Eq for ErrorKind
impl TrackableErrorKind for ErrorKind
[src]
impl TrackableErrorKind for ErrorKind