Struct futures::stream::TryCollect [−][src]
#[must_use = "streams do nothing unless polled"]pub struct TryCollect<S, C> where
S: 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<S, C> Unpin for TryCollect<S, C> where
S: Unpin + TryStream,
[src]
impl<S, C> Unpin for TryCollect<S, C> where
S: Unpin + TryStream,
impl<S, C> Debug for TryCollect<S, C> where
C: Debug,
S: Debug + TryStream,
[src]
impl<S, C> Debug for TryCollect<S, C> where
C: Debug,
S: Debug + TryStream,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<S, C> Future for TryCollect<S, C> where
C: Default + Extend<<S as TryStream>::Ok>,
S: TryStream,
[src]
impl<S, C> Future for TryCollect<S, C> where
C: Default + Extend<<S as TryStream>::Ok>,
S: TryStream,
type Output = Result<C, <S as TryStream>::Error>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(
self: PinMut<TryCollect<S, C>>,
cx: &mut Context
) -> Poll<<TryCollect<S, C> as Future>::Output>
[src]
fn poll(
self: PinMut<TryCollect<S, C>>,
cx: &mut Context
) -> Poll<<TryCollect<S, C> as Future>::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<S, C> Send for TryCollect<S, C> where
C: Send,
S: Send,
impl<S, C> Send for TryCollect<S, C> where
C: Send,
S: Send,
impl<S, C> Sync for TryCollect<S, C> where
C: Sync,
S: Sync,
impl<S, C> Sync for TryCollect<S, C> where
C: Sync,
S: Sync,