Struct futures_util::future::PollFn
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct PollFn<F> { /* fields omitted */ }
A future which adapts a function returning Poll
.
Created by the poll_fn
function.
Trait Implementations
impl<F: Debug> Debug for PollFn<F>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T, E, F> Future for PollFn<F> where
F: FnMut(&mut Context) -> Poll<T, E>,
[src]
F: FnMut(&mut Context) -> Poll<T, E>,