Struct futures::future::SelectOk [] [src]

#[must_use = "futures do nothing unless polled"]
pub struct SelectOk<A> where
    A: Future
{ /* fields omitted */ }

Future for the select_ok combinator, waiting for one of any of a list of futures to successfully complete. Unlike select_all, this future ignores all but the last error, if there are any.

This is created by the select_ok function.

Trait Implementations

impl<A> Debug for SelectOk<A> where
    A: Debug + Future


Formats the value using the given formatter. Read more

impl<A> Future for SelectOk<A> where
    A: Future

A successful value

An error


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<A> Send for SelectOk<A> where
    A: Send

impl<A> Sync for SelectOk<A> where
    A: Sync