Struct futures::future::Map
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct Map<A, F> where
A: Future, { /* fields omitted */ }
Future for the map
combinator, changing the type of a future.
This is created by the Future::map
method.
Trait Implementations
impl<U, A, F> Future for Map<A, F> where
A: Future,
F: FnOnce(<A as Future>::Item) -> U,
[src]
A: Future,
F: FnOnce(<A as Future>::Item) -> U,
type Item = U
A successful value
type Error = <A as Future>::Error
An error
fn poll(&mut self, cx: &mut Context) -> Result<Async<U>, <A as Future>::Error>
[src]
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
impl<A, F> Debug for Map<A, F> where
A: Debug + Future,
F: Debug,
[src]
A: Debug + Future,
F: Debug,