1 2 3 4
use core::future::Future; use core::pin::Pin; pub type BoxedFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;