Enum async_codec::PollDec [] [src]

pub enum PollDec<T, S, E> {
    Done(T, usize),
    Progress(S, usize),
    Pending(S),
    Errored(DecodeError<E>),
}

The return value for poll_decode.

Variants

The decoder has run to completion, yielding an item of type T. The second value is the number of bytes that were read in the last call to poll_read.

Decoding is not done yet, but a non-zero number of bytes was read.

Decoding can not make progress, because the reader would block. /// The current task is scheduled to be awoken when progress can be made.

An error occured during encoding.

Trait Implementations

Auto Trait Implementations

impl<T, S, E> Send for PollDec<T, S, E> where
    E: Send,
    S: Send,
    T: Send

impl<T, S, E> Sync for PollDec<T, S, E> where
    E: Sync,
    S: Sync,
    T: Sync