Struct async_codec_util::Encoder [] [src]

pub struct Encoder<W, C> { /* fields omitted */ }

Future for fully encoding an AsyncEncode into an AsyncWrite.

Methods

impl<W, C> Encoder<W, C>
[src]

[src]

Create a new Encoder wrapping an AsyncWrite and consuming an AsyncEncode.

impl<W, C> Encoder<W, C> where
    W: AsyncWrite,
    C: AsyncEncodeLen
[src]

[src]

Return the exact number of bytes this will still write.

Panics if called after the future completed.

Trait Implementations

impl<W, C> Future for Encoder<W, C> where
    W: AsyncWrite,
    C: AsyncEncode
[src]

A successful value

An error

[src]

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

impl<W, C> Send for Encoder<W, C> where
    C: Send,
    W: Send

impl<W, C> Sync for Encoder<W, C> where
    C: Sync,
    W: Sync