Struct futures_util::stream::Collect [−][src]
#[must_use = "streams do nothing unless polled"]pub struct Collect<St, C> where
St: 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<St: Debug, C: Debug> Debug for Collect<St, C> where
St: Stream,
[src]
impl<St: Debug, C: Debug> Debug for Collect<St, C> where
St: Stream,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<St: Unpin + Stream, C> Unpin for Collect<St, C>
[src]
impl<St: Unpin + Stream, C> Unpin for Collect<St, C>
impl<St, C> Future for Collect<St, C> where
St: Stream,
C: Default + Extend<St::Item>,
[src]
impl<St, C> Future for Collect<St, C> where
St: Stream,
C: Default + Extend<St::Item>,
type Output = C
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<C>
[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<C>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more