Struct futures::stream::Collect
[−]
[src]
#[must_use = "streams do nothing unless polled"]pub struct Collect<S> where
S: Stream, { /* fields omitted */ }
A future which collects all of the values of a stream into a vector.
This future is created by the Stream::collect
method.
Trait Implementations
impl<S> Future for Collect<S> where
S: Stream,
[src]
S: Stream,
type Item = Vec<<S as Stream>::Item>
A successful value
type Error = <S as Stream>::Error
An error
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<Vec<<S as Stream>::Item>>, <S as Stream>::Error>
[src]
&mut self,
cx: &mut Context
) -> Result<Async<Vec<<S as Stream>::Item>>, <S as Stream>::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
impl<S> Debug for Collect<S> where
S: Debug + Stream,
<S as Stream>::Item: Debug,
[src]
S: Debug + Stream,
<S as Stream>::Item: Debug,