Skip to main content

BoxFuture

Type Alias BoxFuture 

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

A boxed, Send future with a bound lifetime — the return type of SnapStartResource hooks. Inlined (rather than re-exported from futures) to avoid leaking the futures crate into this crate’s public type surface.

Aliased Type§

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