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

The inner decoder finished decoding too early, after the contained number of bytes. This error also contains the decoded item.

The inner decoder errored.

Trait Implementations

impl<E: Debug, I: Debug> Debug for DecodeExactError<E, I>
[src]

[src]

Formats the value using the given formatter. Read more

impl<E: Display, I> Display for DecodeExactError<E, I>
[src]

[src]

Formats the value using the given formatter. Read more

impl<E: Error, I: Debug> Error for DecodeExactError<E, I>
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl<E, I> From<E> for DecodeExactError<E, I>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<E, I> Send for DecodeExactError<E, I> where
    E: Send,
    I: Send

impl<E, I> Sync for DecodeExactError<E, I> where
    E: Sync,
    I: Sync