Skip to main content

BoxFuture

Type Alias BoxFuture 

Source
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;
Expand description

装箱的异步 Future,用于 trait object 场景下的异步方法返回类型。

Aliased Type§

pub struct BoxFuture<'a, T> { /* private fields */ }