[][src]Struct futures_util::try_future::UnwrapOrElse

#[must_use = "futures do nothing unless polled"]
pub struct UnwrapOrElse<Fut, F> { /* fields omitted */ }

Future for the unwrap_or_else combinator.

Trait Implementations

impl<Fut: Debug, F: Debug> Debug for UnwrapOrElse<Fut, F>
[src]

Formats the value using the given formatter. Read more

impl<Fut: Unpin, F> Unpin for UnwrapOrElse<Fut, F>
[src]

impl<Fut, F> Future for UnwrapOrElse<Fut, F> where
    Fut: TryFuture,
    F: FnOnce(Fut::Error) -> Fut::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<Fut, F> Send for UnwrapOrElse<Fut, F> where
    F: Send,
    Fut: Send

impl<Fut, F> Sync for UnwrapOrElse<Fut, F> where
    F: Sync,
    Fut: Sync