Struct futures::stream::Chain
[−]
[src]
#[must_use = "streams do nothing unless polled"]pub struct Chain<S1, S2> { /* fields omitted */ }
An adapter for chaining the output of two streams.
The resulting stream produces items from first stream and then from second stream.
Trait Implementations
impl<S1, S2> Debug for Chain<S1, S2> where
S1: Debug,
S2: Debug,
[src]
S1: Debug,
S2: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<S1, S2> Stream for Chain<S1, S2> where
S1: Stream,
S2: Stream<Item = <S1 as Stream>::Item, Error = <S1 as Stream>::Error>,
[src]
S1: Stream,
S2: Stream<Item = <S1 as Stream>::Item, Error = <S1 as Stream>::Error>,
type Item = <S1 as Stream>::Item
Values yielded by the stream.
type Error = <S1 as Stream>::Error
Errors yielded by the stream.
fn poll_next(
&mut self,
cx: &mut Context
) -> Result<Async<Option<<Chain<S1, S2> as Stream>::Item>>, <Chain<S1, S2> as Stream>::Error>
[src]
&mut self,
cx: &mut Context
) -> Result<Async<Option<<Chain<S1, S2> as Stream>::Item>>, <Chain<S1, S2> as Stream>::Error>
Attempt to pull out the next value 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