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,
[src]
impl<A> Debug for SelectOk<A> where
A: Debug + Future,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<A> Future for SelectOk<A> where
A: Future,
[src]
impl<A> Future for SelectOk<A> where
A: Future,
type Item = (<A as Future>::Item, Vec<A>)
A successful value
type Error = <A as Future>::Error
An error
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<<SelectOk<A> as Future>::Item>, <SelectOk<A> as Future>::Error>
[src]
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<<SelectOk<A> as Future>::Item>, <SelectOk<A> as Future>::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