Struct futures::future::MapErr
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct MapErr<A, F> where
A: Future, { /* fields omitted */ }
Future for the map_err
combinator, changing the error type of a future.
This is created by the Future::map_err
method.
Trait Implementations
impl<U, A, F> Future for MapErr<A, F> where
A: Future,
F: FnOnce(<A as Future>::Error) -> U,
[src]
A: Future,
F: FnOnce(<A as Future>::Error) -> U,
type Item = <A as Future>::Item
A successful value
type Error = U
An error
fn poll(&mut self, cx: &mut Context) -> Result<Async<<A as Future>::Item>, U>
[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 MapErr<A, F> where
A: Debug + Future,
F: Debug,
[src]
A: Debug + Future,
F: Debug,