pub trait WrapFuture<T, E> {
// Required method
fn into_future(self) -> BoxFuture<Result<T, E>>;
}Expand description
A future-conversion trait.
Required Methods§
Sourcefn into_future(self) -> BoxFuture<Result<T, E>>
fn into_future(self) -> BoxFuture<Result<T, E>>
Convert itself into a boxed future.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".