Struct futures::future::OrElse[][src]

#[must_use = "futures do nothing unless polled"]
pub struct OrElse<Fut1, Fut2, F> { /* 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<Fut1, Fut2, F> Debug for OrElse<Fut1, Fut2, F> where
    F: Debug,
    Fut1: Debug,
    Fut2: Debug
[src]

Formats the value using the given formatter. Read more

impl<Fut1, Fut2, F> Future for OrElse<Fut1, Fut2, F> where
    F: FnOnce(<Fut1 as TryFuture>::Error) -> Fut2,
    Fut1: TryFuture,
    Fut2: TryFuture<Ok = <Fut1 as TryFuture>::Ok>, 
[src]

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

The result of the Future.

🔬 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

Auto Trait Implementations

impl<Fut1, Fut2, F> Send for OrElse<Fut1, Fut2, F> where
    F: Send,
    Fut1: Send,
    Fut2: Send

impl<Fut1, Fut2, F> Sync for OrElse<Fut1, Fut2, F> where
    F: Sync,
    Fut1: Sync,
    Fut2: Sync