[−][src]Struct tokio::prelude::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, F, Fut, T> Future for Fold<S, F, Fut, T> where
F: FnMut(T, <S as Stream>::Item) -> Fut,
Fut: IntoFuture<Item = T>,
S: Stream,
<S as Stream>::Error: From<<Fut as IntoFuture>::Error>,
[src][+]
F: FnMut(T, <S as Stream>::Item) -> Fut,
Fut: IntoFuture<Item = T>,
S: Stream,
<S as Stream>::Error: From<<Fut as IntoFuture>::Error>,
impl<S, F, Fut, T> Debug for Fold<S, F, Fut, T> where
F: Debug,
Fut: Debug + IntoFuture,
S: Debug,
T: Debug,
<Fut as IntoFuture>::Future: Debug,
[src][+]
F: Debug,
Fut: Debug + IntoFuture,
S: Debug,
T: Debug,
<Fut as IntoFuture>::Future: Debug,
Auto Trait Implementations
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> 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> 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> 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,
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,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> From<T> for T
[src][+]
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>,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<F> IntoFuture for F where
F: Future,
[src][+]
F: Future,