Enum bytecodec::ErrorKind [−][src]
pub enum ErrorKind { InvalidInput, InconsistentState, UnexpectedEos, EncoderFull, DecoderTerminated, IncompleteDecoding, Other, }
Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Makes a TrackableError
instance without cause. Read more
Makes a TrackableError
instance with the specified cause
. Read more
fn takes_over<F, K>(self, from: F) -> TrackableError<Self> where
F: Into<TrackableError<K>>,
K: ErrorKind + Send + Sync + 'static,
fn takes_over<F, K>(self, from: F) -> TrackableError<Self> where
F: Into<TrackableError<K>>,
K: ErrorKind + Send + Sync + 'static,
Takes over from other TrackableError
instance. Read more