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 OutputThe output that the future will produce on completion.
type Future: FutureWhich kind of future are we turning this into?
fn into_future(self) -> Self::FutureCreates a future from a value.
impl<F> IntoFuture for F where
F: Future, [src]
type Output = <F as Future>::Outputtype Future = Ffn 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