Enum async_codec::DecodeError
[−]
[src]
pub enum DecodeError<E> { ReaderError(FutIoErr), DataError(E), }
An error that occured during decoding.
Variants
ReaderError(FutIoErr)
An error propagated from the underlying reader.
DataError(E)
An error describing why the read data could not be decoded into a value.
Trait Implementations
impl<E: Debug> Debug for DecodeError<E>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E: Display> Display for DecodeError<E>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<E: Error> Error for DecodeError<E>
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl<E> From<FutIoErr> for DecodeError<E>
[src]
fn from(err: FutIoErr) -> DecodeError<E>
[src]
Performs the conversion.
Auto Trait Implementations
impl<E> Send for DecodeError<E> where
E: Send,
E: Send,
impl<E> Sync for DecodeError<E> where
E: Sync,
E: Sync,