pub trait IntoFuture {
    type Output;
    type IntoFuture: Future<Output = Self::Output>;

    fn into_future(self) -> Self::IntoFuture;
}
🔬 This is a nightly-only experimental API. (into_future #67644)
Expand description

Conversion into a Future.

Required 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

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.