[−][src]Struct futures_util::future::Map
#[must_use = "futures do nothing unless polled"]pub struct Map<Fut, F> { /* fields omitted */ }
Future for the map
combinator, changing the type of a future.
This is created by the Future::map
method.
Trait Implementations
impl<Fut: Debug, F: Debug> Debug for Map<Fut, F>
[src]
impl<Fut: Debug, F: Debug> Debug for Map<Fut, F>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Fut: Unpin, F> Unpin for Map<Fut, F>
[src]
impl<Fut: Unpin, F> Unpin for Map<Fut, F>
impl<Fut, F, T> Future for Map<Fut, F> where
Fut: Future,
F: FnOnce(Fut::Output) -> T,
[src]
impl<Fut, F, T> Future for Map<Fut, F> where
Fut: Future,
F: FnOnce(Fut::Output) -> T,
type Output = T
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<T>
[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<T>
🔬 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