Struct tower_web::util::buf_stream::Chain[][src]

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

A buf stream that sequences two buf streams together.

Chain values are produced by the chain function on BufStream.

Trait Implementations

impl<T: Debug, U: Debug> Debug for Chain<T, U>
[src]

Formats the value using the given formatter. Read more

impl<T, U> BufStream for Chain<T, U> where
    T: BufStream,
    U: BufStream<Error = T::Error>, 
[src]

Values yielded by the BufStream.

The error type this BufStream might generate.

Attempt to pull out the next buffer of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more

Returns the bounds on the remaining length of the iterator. Read more

Takes two buf streams and creates a new buf stream over both in sequence. Read more

Consumes all data from self, storing it in byte storage of type T.

Auto Trait Implementations

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

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