Struct futures_state_stream::Unfold [] [src]

pub struct Unfold<T, F, Fut> where
    Fut: IntoFuture
{ /* fields omitted */ }

A stream which iteratively applies a closure to state to produce items.

Trait Implementations

impl<T, F, Fut, It, St, E> StateStream for Unfold<T, F, Fut> where
    F: FnMut(T) -> Fut,
    Fut: IntoFuture<Item = StreamEvent<(It, T), St>, Error = (E, St)>, 
[src]

The items being streamed.

The state returned when streaming completes.

The error returned.

[src]

Similar to Stream::poll. Read more

[src]

Returns a future which yields the next element of the stream.

[src]

Returns a normal Stream which yields the elements of this stream and discards the state.

[src]

Returns a stream which applies a transform to items of this stream.

[src]

Returns a stream which applies a transform to errors of this stream.

[src]

Returns a stream which applies a transform to the state of this stream.

[src]

Returns a stream which filters items of this stream by a predicate.

[src]

Returns a stream which filters and transforms items of this stream by a predicate.

[src]

Returns a stream which collects all items of this stream into a Vec, returning it along with the stream's state. Read more

[src]

Returns a future which applies a closure to each item of this stream.