Skip to main content

BoxFuture

Type Alias BoxFuture 

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

An owned, dynamically dispatched future used by public asynchronous ports.

The alias is runtime-neutral: callers may poll it with Tokio or another compatible executor, and repository implementations need not expose their executor or database-driver types.

Aliased Typeยง

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