Skip to main content

BoxFuture

Type Alias BoxFuture 

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

Type alias for boxed async futures.

Used internally by the middleware system for async execution. This type represents a pinned, boxed future that resolves to type T and can be sent across threads.

§Type Parameters

  • 'a - Lifetime of the future
  • T - The type the future resolves to

Aliased Type§

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