pub trait FutureExt: Future { // Provided method fn boxed<'a>(self) -> BoxFuture<'a, Self::Output> where Self: Sized + 'a { ... } }
An extension trait for Futures that provides a convenient adapter.
Future
Wrap the future in a Box, pinning it.