pub struct TryFold<S, F, Acc> { /* private fields */ }Expand description
A future that folds items from a stream of Results.
Short-circuits on the first error.
Created by StreamExt::try_fold.
Trait Implementations§
Source§impl<S, F, Acc, T, E> Future for TryFold<S, F, Acc>
impl<S, F, Acc, T, E> Future for TryFold<S, F, Acc>
Source§type Output = Result<Acc, TryStreamError<E>>
type Output = Result<Acc, TryStreamError<E>>
The type of value produced on completion.
impl<S: Unpin, F, Acc> Unpin for TryFold<S, F, Acc>
Auto Trait Implementations§
impl<S, F, Acc> Freeze for TryFold<S, F, Acc>
impl<S, F, Acc> RefUnwindSafe for TryFold<S, F, Acc>
impl<S, F, Acc> Send for TryFold<S, F, Acc>
impl<S, F, Acc> Sync for TryFold<S, F, Acc>
impl<S, F, Acc> UnsafeUnpin for TryFold<S, F, Acc>
impl<S, F, Acc> UnwindSafe for TryFold<S, F, Acc>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<F> FutureExt for F
impl<F> FutureExt for F
Source§fn catch_unwind(self) -> CatchUnwind<Self> ⓘwhere
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self> ⓘwhere
Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more