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

The encoder has been run to completion, the last call to poll_encode wrote this many bytes.

Encoding is not done yet, but a non-zero number of bytes was written.

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

The writer emitted an error.

Trait Implementations

Auto Trait Implementations

impl<S> Send for PollEnc<S> where
    S: Send

impl<S> Sync for PollEnc<S> where
    S: Sync