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