pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;Available on crate feature
alloc only.Expand description
An owned dynamically typed Future for use at return position in cases
when type is opaque and existential type cannot be used,
or when multiple types can be returned.
A type alias equal to futures::future::BoxFuture
when “sync” feature is enabled.
A type alias equal to futures::future::LocalBoxFuture
when “sync” feature is not enabled.
Aliased Type§
pub struct BoxFuture<'a, T> { /* private fields */ }