Struct futures::future::IntoFuture [−][src]
#[must_use = "futures do nothing unless polled"]pub struct IntoFuture<Fut> { /* fields omitted */ }
Converts a TryFuture
into a normal Future
Trait Implementations
impl<Fut> Debug for IntoFuture<Fut> where
Fut: Debug,
[src]
impl<Fut> Debug for IntoFuture<Fut> where
Fut: Debug,
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<Fut> Future for IntoFuture<Fut> where
Fut: TryFuture,
[src]
impl<Fut> Future for IntoFuture<Fut> where
Fut: TryFuture,
type Output = Result<<Fut as TryFuture>::Ok, <Fut as TryFuture>::Error>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(
self: PinMut<IntoFuture<Fut>>,
cx: &mut Context
) -> Poll<<IntoFuture<Fut> as Future>::Output>
[src]
fn poll(
self: PinMut<IntoFuture<Fut>>,
cx: &mut Context
) -> Poll<<IntoFuture<Fut> as Future>::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<Fut> Send for IntoFuture<Fut> where
Fut: Send,
impl<Fut> Send for IntoFuture<Fut> where
Fut: Send,
impl<Fut> Sync for IntoFuture<Fut> where
Fut: Sync,
impl<Fut> Sync for IntoFuture<Fut> where
Fut: Sync,