Struct async_codec_util::decoder::Chain [] [src]

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

Chain two decoders, running them in sequence.

Methods

impl<S, T> Chain<S, T> where
    S: AsyncDecode
[src]

[src]

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

Trait Implementations

impl<S, T> AsyncDecode for Chain<S, T> where
    S: AsyncDecode,
    T: AsyncDecode<Error = S::Error>, 
[src]

The type of the value to decode.

An error indicating how decoding can fail.

[src]

Call reader.poll_read exactly once, propgating any Err and Pending, and return how many bytes have been read, as well as the decoded value, once decoding is done. Read more

Auto Trait Implementations

impl<S, T> Send for Chain<S, T> where
    S: Send,
    T: Send,
    <S as AsyncDecode>::Item: Send

impl<S, T> Sync for Chain<S, T> where
    S: Sync,
    T: Sync,
    <S as AsyncDecode>::Item: Sync