Struct futures::future::LoopFn [] [src]

#[must_use = "futures do nothing unless polled"]
pub struct LoopFn<A, F> where
    A: IntoFuture
{ /* fields omitted */ }

A future implementing a tail-recursive loop.

Created by the loop_fn function.

Trait Implementations

impl<A, F> Debug for LoopFn<A, F> where
    A: Debug + IntoFuture,
    F: Debug,
    <A as IntoFuture>::Future: Debug


Formats the value using the given formatter. Read more

impl<S, T, A, F> Future for LoopFn<A, F> where
    A: IntoFuture<Item = Loop<T, S>>,
    F: FnMut(S) -> A, 

A successful value

An error


Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

impl<A, F> Send for LoopFn<A, F> where
    F: Send,
    <A as IntoFuture>::Future: Send

impl<A, F> Sync for LoopFn<A, F> where
    F: Sync,
    <A as IntoFuture>::Future: Sync