[−][src]Struct futures::stream::Fold
A future used to collect all the results of a stream into one generic type.
This future is returned by the Stream::fold
method.
Trait Implementations
impl<S: Debug, F: Debug, Fut: Debug, T: Debug> Debug for Fold<S, F, Fut, T> where
Fut: IntoFuture,
Fut::Future: Debug,
[src][+]
Fut: IntoFuture,
Fut::Future: Debug,
impl<S, F, Fut, T> Future for Fold<S, F, Fut, T> where
S: Stream,
F: FnMut(T, S::Item) -> Fut,
Fut: IntoFuture<Item = T>,
S::Error: From<Fut::Error>,
[src][+]
S: Stream,
F: FnMut(T, S::Item) -> Fut,
Fut: IntoFuture<Item = T>,
S::Error: From<Fut::Error>,
Auto Trait Implementations
impl<S, F, Fut, T> RefUnwindSafe for Fold<S, F, Fut, T> where
F: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
<Fut as IntoFuture>::Future: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
<Fut as IntoFuture>::Future: RefUnwindSafe,
impl<S, F, Fut, T> Send for Fold<S, F, Fut, T> where
F: Send,
S: Send,
T: Send,
<Fut as IntoFuture>::Future: Send,
F: Send,
S: Send,
T: Send,
<Fut as IntoFuture>::Future: Send,
impl<S, F, Fut, T> Sync for Fold<S, F, Fut, T> where
F: Sync,
S: Sync,
T: Sync,
<Fut as IntoFuture>::Future: Sync,
F: Sync,
S: Sync,
T: Sync,
<Fut as IntoFuture>::Future: Sync,
impl<S, F, Fut, T> Unpin for Fold<S, F, Fut, T> where
F: Unpin,
S: Unpin,
T: Unpin,
<Fut as IntoFuture>::Future: Unpin,
F: Unpin,
S: Unpin,
T: Unpin,
<Fut as IntoFuture>::Future: Unpin,
impl<S, F, Fut, T> UnwindSafe for Fold<S, F, Fut, T> where
F: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
<Fut as IntoFuture>::Future: UnwindSafe,
F: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
<Fut as IntoFuture>::Future: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src][+]
F: Future,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,