Trait std::future::IntoFuture
pub trait IntoFuture {
type Output;
type Future: Future;
fn into_future(self) -> Self::Future;
}
Conversion into a Future.
Associated Types
type Output
The output that the future will produce on completion.
type Future: Future
Which kind of future are we turning this into?
Required methods
fn into_future(self) -> Self::Future
Creates a future from a value.
Implementors
© 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