Type Alias BoxedFuture

Source
pub type BoxedFuture<T> = Pin<Box<dyn Future<Output = T>>>;
Expand description

A future created from Box::pin() on an async code block.

Example:

let future: BoxedFuture<()> = Box::pin(
    /* async code here */
)

Aliased Typeยง

pub struct BoxedFuture<T> { /* private fields */ }