Struct futures::future::MapOk[][src]

#[must_use = "futures do nothing unless polled"]
pub struct MapOk<Fut, F> { /* fields omitted */ }

Future for the map_ok combinator, changing the type of a future.

This is created by the Future::map_ok method.

Trait Implementations

impl<Fut, F> Unpin for MapOk<Fut, F> where
    Fut: Unpin
[src]

impl<Fut, F> Debug for MapOk<Fut, F> where
    F: Debug,
    Fut: Debug
[src]

Formats the value using the given formatter. Read more

impl<Fut, F, T> Future for MapOk<Fut, F> where
    F: FnOnce(<Fut as TryFuture>::Ok) -> T,
    Fut: TryFuture
[src]

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

The result of the Future.

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

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<Fut, F> Send for MapOk<Fut, F> where
    F: Send,
    Fut: Send

impl<Fut, F> Sync for MapOk<Fut, F> where
    F: Sync,
    Fut: Sync