Struct futures::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, B> Debug for Select<A, B> where
    A: Debug,
    B: Debug


Formats the value using the given formatter. Read more

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

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