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
Done(T, usize)
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
.
Progress(S, usize)
Decoding is not done yet, but a non-zero number of bytes was read.
Pending(S)
Decoding can not make progress, because the reader would block. /// The current task is scheduled to be awoken when progress can be made.
Errored(DecodeError<E>)
An error occured during encoding.