Enum async_codec::PollEnc
[−]
[src]
pub enum PollEnc<S> { Done(usize), Progress(S, usize), Pending(S), Errored(FutIoErr), }
The return value for poll_encode
.
Variants
Done(usize)
The encoder has been run to completion, the last call to poll_encode
wrote this many bytes.
Progress(S, usize)
Encoding is not done yet, but a non-zero number of bytes was written.
Pending(S)
Encoding can not make progress, because the writer would block. The current task is scheduled to be awoken when progress can be made.
Errored(FutIoErr)
The writer emitted an error.