Struct futures_util::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<A: Debug, F: Debug> Debug for Map<A, F> where
    A: Future
[src]

[src]

Formats the value using the given formatter. Read more

impl<U, A, F> Future for Map<A, F> where
    A: Future,
    F: FnOnce(A::Item) -> U, 
[src]

A successful value

An 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

Auto Trait Implementations

impl<A, F> Send for Map<A, F> where
    A: Send,
    F: Send

impl<A, F> Sync for Map<A, F> where
    A: Sync,
    F: Sync