Struct futures_util::future::OrElse
[−]
[src]
#[must_use = "futures do nothing unless polled"]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: Debug, B: Debug, F: Debug> Debug for OrElse<A, B, F> where
A: Future,
B: IntoFuture,
B::Future: Debug,
[src]
A: Future,
B: IntoFuture,
B::Future: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<A, B, F> Future for OrElse<A, B, F> where
A: Future,
B: IntoFuture<Item = A::Item>,
F: FnOnce(A::Error) -> B,
[src]
A: Future,
B: IntoFuture<Item = A::Item>,
F: FnOnce(A::Error) -> B,