[−][src]Struct futures_util::try_future::TryJoin
#[must_use = "futures do nothing unless polled"]pub struct TryJoin<Fut1: TryFuture, Fut2: TryFuture> { /* fields omitted */ }
Future for the try_join
combinator, waiting for two futures to
complete or for one to error.
This is created by the TryFuture::try_join
method.
Trait Implementations
impl<Fut1, Fut2> Debug for TryJoin<Fut1, Fut2> where
Fut1: TryFuture + Debug,
Fut1::Ok: Debug,
Fut1::Error: Debug,
Fut2: TryFuture + Debug,
Fut2::Ok: Debug,
Fut2::Error: Debug,
[src]
impl<Fut1, Fut2> Debug for TryJoin<Fut1, Fut2> where
Fut1: TryFuture + Debug,
Fut1::Ok: Debug,
Fut1::Error: Debug,
Fut2: TryFuture + Debug,
Fut2::Ok: Debug,
Fut2::Error: Debug,
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Fut1, Fut2> Future for TryJoin<Fut1, Fut2> where
Fut1: TryFuture,
Fut2: TryFuture<Error = Fut1::Error>,
[src]
impl<Fut1, Fut2> Future for TryJoin<Fut1, Fut2> where
Fut1: TryFuture,
Fut2: TryFuture<Error = Fut1::Error>,
type Output = Result<(Fut1::Ok, Fut2::Ok), Fut1::Error>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Self::Output>
[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Self::Output>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
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<Fut1, Fut2> Send for TryJoin<Fut1, Fut2> where
Fut1: Send,
Fut2: Send,
<Fut1 as TryFuture>::Error: Send,
<Fut2 as TryFuture>::Error: Send,
<Fut1 as TryFuture>::Ok: Send,
<Fut2 as TryFuture>::Ok: Send,
impl<Fut1, Fut2> Send for TryJoin<Fut1, Fut2> where
Fut1: Send,
Fut2: Send,
<Fut1 as TryFuture>::Error: Send,
<Fut2 as TryFuture>::Error: Send,
<Fut1 as TryFuture>::Ok: Send,
<Fut2 as TryFuture>::Ok: Send,
impl<Fut1, Fut2> Sync for TryJoin<Fut1, Fut2> where
Fut1: Sync,
Fut2: Sync,
<Fut1 as TryFuture>::Error: Sync,
<Fut2 as TryFuture>::Error: Sync,
<Fut1 as TryFuture>::Ok: Sync,
<Fut2 as TryFuture>::Ok: Sync,
impl<Fut1, Fut2> Sync for TryJoin<Fut1, Fut2> where
Fut1: Sync,
Fut2: Sync,
<Fut1 as TryFuture>::Error: Sync,
<Fut2 as TryFuture>::Error: Sync,
<Fut1 as TryFuture>::Ok: Sync,
<Fut2 as TryFuture>::Ok: Sync,