Struct futures_util::try_stream::TryCollect [−][src]
#[must_use = "streams do nothing unless polled"]pub struct TryCollect<St, C> where
St: TryStream, { /* fields omitted */ }
A future which attempts to collect all of the values of a stream.
This future is created by the Stream::try_collect
method.
Trait Implementations
impl<St: Debug, C: Debug> Debug for TryCollect<St, C> where
St: TryStream,
[src]
impl<St: Debug, C: Debug> Debug for TryCollect<St, C> where
St: TryStream,
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 + TryStream, C> Unpin for TryCollect<St, C>
[src]
impl<St: Unpin + TryStream, C> Unpin for TryCollect<St, C>
impl<St, C> Future for TryCollect<St, C> where
St: TryStream,
C: Default + Extend<St::Ok>,
[src]
impl<St, C> Future for TryCollect<St, C> where
St: TryStream,
C: Default + Extend<St::Ok>,
type Output = Result<C, St::Error>
🔬 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<Self::Output>
[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Self::Output>
🔬 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
Auto Trait Implementations
impl<St, C> Send for TryCollect<St, C> where
C: Send,
St: Send,
impl<St, C> Send for TryCollect<St, C> where
C: Send,
St: Send,
impl<St, C> Sync for TryCollect<St, C> where
C: Sync,
St: Sync,
impl<St, C> Sync for TryCollect<St, C> where
C: Sync,
St: Sync,