Struct futures_util::future::Select [] [src]

#[must_use = "futures do nothing unless polled"]
pub struct Select<A, B> { /* fields omitted */ }

Future for the select combinator, waiting for one of two differently-typed futures to complete.

This is created by the Future::select method.

Trait Implementations

impl<A: Debug, B: Debug> Debug for Select<A, B>
[src]

[src]

Formats the value using the given formatter. Read more

impl<A, B> Future for Select<A, B> where
    A: Future,
    B: 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, B> Send for Select<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for Select<A, B> where
    A: Sync,
    B: Sync