Struct futures_util::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: Debug, F: Debug> Debug for LoopFn<A, F> where
A: IntoFuture,
A::Future: Debug,
[src]
A: IntoFuture,
A::Future: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S, T, A, F> Future for LoopFn<A, F> where
F: FnMut(S) -> A,
A: IntoFuture<Item = Loop<T, S>>,
[src]
F: FnMut(S) -> A,
A: IntoFuture<Item = Loop<T, S>>,