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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[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: Future,
B: Future,
type Item = Either<(A::Item, B), (B::Item, A)>
A successful value
type Error = Either<(A::Error, B), (B::Error, A)>
An error
fn poll(&mut self, cx: &mut Context) -> Poll<Self::Item, Self::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