Enum bytecodec::ErrorKind[][src]

pub enum ErrorKind {
    InvalidInput,
    InconsistentState,
    UnexpectedEos,
    EncoderFull,
    DecoderTerminated,
    IncompleteDecoding,
    Other,
}

Possible error kinds.

Variants

Input is invalid.

Usually it indicates there is a problem outside of the encoder/decoder.

Inconsistent state of the encoder/decoder.

Usually it indicates there is a bug in the encoder/decoder.

Unexpected EOS.

A target stream has reached EOS despite there are some items to be encoded/decoded.

Encoder is full.

The encoder cannot accept more items because it has some items to be encoded currently.

Decoder has terminated.

The decoder cannot decode any more items.

A decoding process terminated incompletely.

Other errors.

Trait Implementations

impl From<ErrorKind> for Error

Performs the conversion.

impl Debug for ErrorKind
[src]

Formats the value using the given formatter. Read more

impl Clone for ErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ErrorKind
[src]

impl PartialEq for ErrorKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ErrorKind
[src]

impl TrackableErrorKind for ErrorKind
[src]

A short description of the error kind. Read more

Displays this kind. Read more

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind