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