pub trait IntoFuture where <Self::Future as Future>::Output == Self::Output, { type Output; type Future: Future; fn into_future(self) -> Self::Future; }
Conversion into a Future
.
type Output
The output that the future will produce on completion.
type Future: Future
Which kind of future are we turning this into?
fn into_future(self) -> Self::Future
Creates a future from a value.
impl<F> IntoFuture for F where
F: Future,
[src]
type Output = <F as Future>::Output
type Future = F
fn into_future(self) -> <F as IntoFuture>::Future
[src]
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/future/trait.IntoFuture.html