Struct async_codec_util::encoder::Chain [] [src]

pub struct Chain<W, S, T> { /* fields omitted */ }

Wraps two AsyncEncodes and encodes them in sequence.

Methods

impl<W, S, T> Chain<W, S, T>
[src]

[src]

Create new Chain which first encodes the given S and then encodes the given T.

Trait Implementations

impl<W, S, T> AsyncEncode<W> for Chain<W, S, T> where
    W: AsyncWrite,
    S: AsyncEncode<W>,
    T: AsyncEncode<W>, 
[src]

[src]

Call writer.poll_write once with encoded data, propagating any Err and Pending, and returning how many bytes were written. Read more

impl<W, S, T> AsyncEncodeLen<W> for Chain<W, S, T> where
    W: AsyncWrite,
    S: AsyncEncodeLen<W>,
    T: AsyncEncodeLen<W>, 
[src]

[src]

Return the exact number of bytes this will still write. Read more

Auto Trait Implementations

impl<W, S, T> Send for Chain<W, S, T> where
    S: Send,
    T: Send,
    W: Send

impl<W, S, T> Sync for Chain<W, S, T> where
    S: Sync,
    T: Sync,
    W: Sync