Enum async_codec_util::decoder::DecodeExactError
[−]
[src]
pub enum DecodeExactError<E, I> { Early(I, usize), Inner(E), }
The error of a DecodeExact
.
The inner decoder is limited in the number of bytes it can read. It errors with UnexpectedEof
when it tries to read more than the allowed amount of bytes.
Variants
Early(I, usize)
The inner decoder finished decoding too early, after the contained number of bytes. This error also contains the decoded item.
Inner(E)
The inner decoder errored.
Trait Implementations
impl<E: Debug, I: Debug> Debug for DecodeExactError<E, I>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E: Display, I> Display for DecodeExactError<E, I>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<E: Error, I: Debug> Error for DecodeExactError<E, I>
[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, I> From<E> for DecodeExactError<E, I>
[src]
fn from(err: E) -> DecodeExactError<E, I>
[src]
Performs the conversion.
Auto Trait Implementations
impl<E, I> Send for DecodeExactError<E, I> where
E: Send,
I: Send,
E: Send,
I: Send,
impl<E, I> Sync for DecodeExactError<E, I> where
E: Sync,
I: Sync,
E: Sync,
I: Sync,