1 use crate::future::Future;
3 /// Conversion into a `Future`.
4 #[unstable(feature = "into_future", issue = "67644")]
6 /// The output that the future will produce on completion.
7 #[unstable(feature = "into_future", issue = "67644")]
10 /// Which kind of future are we turning this into?
11 #[unstable(feature = "into_future", issue = "67644")]
12 type Future: Future<Output = Self::Output>;
14 /// Creates a future from a value.
15 #[unstable(feature = "into_future", issue = "67644")]
16 fn into_future(self) -> Self::Future;
19 #[unstable(feature = "into_future", issue = "67644")]
20 impl<F: Future> IntoFuture for F {
21 type Output = F::Output;
24 fn into_future(self) -> Self::Future {