Enum bytecodec::ErrorKind [−][src]
pub enum ErrorKind {
InvalidInput,
InconsistentState,
UnexpectedEos,
EncoderFull,
DecoderTerminated,
IncompleteDecoding,
Other,
}Possible error kinds.
Variants
InvalidInputInput is invalid.
Usually it indicates there is a problem outside of the encoder/decoder.
InconsistentStateInconsistent state of the encoder/decoder.
Usually it indicates there is a bug in the encoder/decoder.
UnexpectedEosUnexpected EOS.
A target stream has reached EOS despite there are some items to be encoded/decoded.
EncoderFullEncoder is full.
The encoder cannot accept more items because it has some items to be encoded currently.
DecoderTerminatedDecoder has terminated.
The decoder cannot decode any more items.
IncompleteDecodingA decoding process terminated incompletely.
OtherOther errors.
Trait Implementations
impl From<ErrorKind> for Error
impl From<ErrorKind> for Errorimpl Debug for ErrorKind[src]
impl Debug for ErrorKindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ErrorKind[src]
impl Clone for ErrorKindfn clone(&self) -> ErrorKind[src]
fn clone(&self) -> ErrorKindReturns 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 ErrorKindimpl PartialEq for ErrorKind[src]
impl PartialEq for ErrorKindfn eq(&self, other: &ErrorKind) -> bool[src]
fn eq(&self, other: &ErrorKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for ErrorKind[src]
impl Eq for ErrorKindimpl TrackableErrorKind for ErrorKind[src]
impl TrackableErrorKind for ErrorKind