Struct futures_util::stream::Unfold [] [src]

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

A stream which creates futures, polls them and return their result

This stream is returned by the futures::stream::unfold method

Trait Implementations

impl<T: Debug, F: Debug, Fut: Debug> Debug for Unfold<T, F, Fut> where
    Fut: IntoFuture,
    Fut::Future: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<T, F, Fut, It> Stream for Unfold<T, F, Fut> where
    F: FnMut(T) -> Fut,
    Fut: IntoFuture<Item = Option<(It, T)>>, 
[src]

Values yielded by the stream.

Errors yielded by the stream.

[src]

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more

Auto Trait Implementations

impl<T, F, Fut> Send for Unfold<T, F, Fut> where
    F: Send,
    T: Send,
    <Fut as IntoFuture>::Future: Send

impl<T, F, Fut> Sync for Unfold<T, F, Fut> where
    F: Sync,
    T: Sync,
    <Fut as IntoFuture>::Future: Sync