Skip to main content

AcceptFuture

Type Alias AcceptFuture 

Source
pub type AcceptFuture = Pin<Box<dyn Future<Output = SourceResult<PickerAcceptOutcome>> + Send>>;
Expand description

One-shot async future a source returns from accept_async when translating the chosen routing payload requires off-thread work — the motivating case is a WASM plugin source whose accept is an async guest call bound to its actor task (lattice-plugin-host). Same 'static + Send contract as CandidateFuture: the source extracts everything it needs (the projected context, the routing token) during the synchronous accept_async prelude and moves it into the closure.

Aliased Type§

pub struct AcceptFuture { /* private fields */ }