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