Skip to main content

BoxFuture

Type Alias BoxFuture 

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

Convenience alias for boxed futures returned by hook traits.

§Examples

use dynomite::embed::hooks::BoxFuture;
fn _adapter() -> BoxFuture<'static, u32> {
    Box::pin(async { 42 })
}

Aliased Type§

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