Struct futures_util::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> Debug for SelectOk<A> where
    A: Future
[src]

[src]

Formats the value using the given formatter. Read more

impl<A> Future for SelectOk<A> where
    A: Future
[src]

A successful value

An error

[src]

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