Skip to main content

BoxFuture

Type Alias BoxFuture 

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

Boxed future used as AgentRuntime::respond return type.

Using an explicit BoxFuture instead of async_trait keeps the kernel dependency-free (no async_trait macro crate required).

Aliased Typeยง

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