Struct actix::fut::StreamFold [] [src]

#[must_use = "streams do nothing unless polled"]
pub struct StreamFold<S, F, Fut, T> where
    Fut: IntoActorFuture
{ /* fields omitted */ }

A future used to collect all the results of a stream into one generic type.

This future is returned by the ActorStream::fold method.

Trait Implementations

impl<S: Debug, F: Debug, Fut: Debug, T: Debug> Debug for StreamFold<S, F, Fut, T> where
    Fut: IntoActorFuture,
    Fut::Future: Debug
[src]

[src]

Formats the value using the given formatter.

impl<S, F, Fut, T> ActorFuture for StreamFold<S, F, Fut, T> where
    S: ActorStream,
    F: FnMut(T, S::Item, &mut S::Actor, &mut <S::Actor as Actor>::Context) -> Fut,
    Fut: IntoActorFuture<Item = T, Actor = S::Actor>,
    S::Error: From<Fut::Error>, 
[src]

The type of value that this future will resolved with if it is successful. Read more

The type of error that this future will resolve with if it fails in a normal fashion. Read more

The actor within which this future runs

[src]

[src]

Map this future's result to a different type, returning a new future of the resulting type. Read more

[src]

Map this future's error to a different error, returning a new future.

[src]

Drop this future's error, returning a new future.

[src]

Chain on a computation for when a future finished, passing the result of the future to the provided closure f. Read more

[src]

Execute another future after this one has resolved successfully.