pub type LocalBoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;Expand description
A boxed future that is not Send, and so cannot cross threads.
Used for the few contracts that wrap something inherently thread-bound —
notably the escape hatch onto Rainier ORM’s own Executor API, whose futures
hold sea_query statements (and therefore Rc) across their awaits. Code
on the request path should never need this; a handler’s future must be
Send for the server to spawn it.
Aliased Type§
#[repr(transparent)]pub struct LocalBoxFuture<'a, T> { /* private fields */ }