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

pub struct Chain<S, T>(_);

Wraps two AsyncEncodes and encodes them in sequence.

Methods

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

[src]

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

Trait Implementations

impl<S, T> AsyncEncode for Chain<S, T> where
    S: AsyncEncode,
    T: AsyncEncode
[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<S, T> AsyncEncodeLen for Chain<S, T> where
    S: AsyncEncodeLen,
    T: AsyncEncodeLen
[src]

[src]

Return the exact number of bytes this will still write.

Auto Trait Implementations

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

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