Trait std::future::IntoFuture

pub trait IntoFuture {
    type Output;
    type Future: Future;
    fn into_future(self) -> Self::Future;
}
???? This is a nightly-only experimental API. (into_future #67644)

Conversion into a Future.

Associated Types

???? This is a nightly-only experimental API. (into_future #67644)

The output that the future will produce on completion.

???? This is a nightly-only experimental API. (into_future #67644)

Which kind of future are we turning this into?

Required methods

???? This is a nightly-only experimental API. (into_future #67644)

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