Skip to main content

BootstrapDispatchFn

Type Alias BootstrapDispatchFn 

Source
pub type BootstrapDispatchFn = fn(&mut (dyn Any + 'static), &mut BootstrapCtx) -> Result<DispatchResult, String>;
Expand description

Type alias for the Bootstrap::bootstrap downcast-dispatch fn pointer the engine stores per concrete Bootstrap impl. Mirrors ProtocolDispatchFn’s erased-Any shape so the F3 Component bootstrap fire path can invoke the impl without a per-TypeId downcast on every call. The closure downcasts any to T, runs T::bootstrap(&mut BootstrapCtx), and reports the DispatchResult (Immediate or Async) for the synthetic single- op dispatch.