Enum futures::future::MaybeDone[][src]

pub enum MaybeDone<Fut> where
    Fut: Future
{ Future(Fut), Done(<Fut as Future>::Output), Gone, }

MaybeDone, a future that may have completed.

This is created by the maybe_done function.

Variants

A not-yet-completed future

The output of the completed future

The empty variant after the result of a maybe_done has been taken using the take_output method.

Methods

impl<Fut> MaybeDone<Fut> where
    Fut: Future
[src]

Attempt to take the output of a MaybeDone without driving it towards completion.

Trait Implementations

impl<Fut> Unpin for MaybeDone<Fut> where
    Fut: Unpin + Future
[src]

impl<Fut> Debug for MaybeDone<Fut> where
    Fut: Debug + Future,
    <Fut as Future>::Output: Debug
[src]

Formats the value using the given formatter. Read more

impl<Fut> Future for MaybeDone<Fut> where
    Fut: Future
[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> Send for MaybeDone<Fut> where
    Fut: Send,
    <Fut as Future>::Output: Send

impl<Fut> Sync for MaybeDone<Fut> where
    Fut: Sync,
    <Fut as Future>::Output: Sync