pub type HostCallDispatchFuture<'a> = Pin<Box<dyn Future<Output = Result<Option<VmValue>, VmError>> + Send + 'a>>;Expand description
Boxed future returned by HostCallBridge::dispatch.
Prefer this over async_trait: production call sites are already async,
and a hand-rolled boxed future is the smallest seam that lets
dispatch_host_operation_with_ctx await a bridge. The future is Send
because the stdlib host_call builtin is registered through the async
builtin path, which requires Send futures even when embedders pin work
to a current-thread LocalSet.
Aliased Typeยง
pub struct HostCallDispatchFuture<'a> { /* private fields */ }