Struct tokio::prelude::future::OrElse [−][src]
pub struct OrElse<A, B, F> where
A: Future,
B: IntoFuture, { /* fields omitted */ }
Future for the or_else
combinator, chaining a computation onto the end of
a future which fails with an error.
This is created by the Future::or_else
method.
Trait Implementations
impl<A, B, F> Future for OrElse<A, B, F> where
A: Future,
B: IntoFuture<Item = <A as Future>::Item>,
F: FnOnce(<A as Future>::Error) -> B,
[src]
[+]
impl<A, B, F> Future for OrElse<A, B, F> where
A: Future,
B: IntoFuture<Item = <A as Future>::Item>,
F: FnOnce(<A as Future>::Error) -> B,
impl<A, B, F> Debug for OrElse<A, B, F> where
A: Debug + Future,
B: Debug + IntoFuture,
F: Debug,
<B as IntoFuture>::Future: Debug,
[src]
[+]
impl<A, B, F> Debug for OrElse<A, B, F> where
A: Debug + Future,
B: Debug + IntoFuture,
F: Debug,
<B as IntoFuture>::Future: Debug,