pub enum ErrorKind {
InvalidInput,
InconsistentState,
UnexpectedEos,
EncoderFull,
DecoderTerminated,
IncompleteDecoding,
Other,
}
Expand description
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 Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ErrorKindExt for Twhere
T: ErrorKind,
impl<T> ErrorKindExt for Twhere
T: ErrorKind,
Source§fn error(self) -> TrackableError<Self>
fn error(self) -> TrackableError<Self>
Makes a
TrackableError
instance without cause. Read moreSource§fn cause<E>(self, cause: E) -> TrackableError<Self>
fn cause<E>(self, cause: E) -> TrackableError<Self>
Source§fn takes_over<F, K>(self, from: F) -> TrackableError<Self>
fn takes_over<F, K>(self, from: F) -> TrackableError<Self>
Takes over from other
TrackableError
instance. Read more