Struct futures::stream::Concat
[−]
[src]
#[must_use = "streams do nothing unless polled"]pub struct Concat<S> where
S: Stream, { /* fields omitted */ }
A stream combinator to concatenate the results of a stream into the first yielded item.
This structure is produced by the Stream::concat
method.
Trait Implementations
impl<S> Debug for Concat<S> where
S: Debug + Stream,
<S as Stream>::Item: Debug,
[src]
S: Debug + Stream,
<S as Stream>::Item: Debug,
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<S> Future for Concat<S> where
S: Stream,
<S as Stream>::Item: Extend<<<S as Stream>::Item as IntoIterator>::Item>,
<S as Stream>::Item: IntoIterator,
<S as Stream>::Item: Default,
[src]
S: Stream,
<S as Stream>::Item: Extend<<<S as Stream>::Item as IntoIterator>::Item>,
<S as Stream>::Item: IntoIterator,
<S as Stream>::Item: Default,
type Item = <S as Stream>::Item
A successful value
type Error = <S as Stream>::Error
An error
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<<Concat<S> as Future>::Item>, <Concat<S> as Future>::Error>
[src]
&mut self,
cx: &mut Context
) -> Result<Async<<Concat<S> as Future>::Item>, <Concat<S> as Future>::Error>
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more