Skip to main content

build_router_with

Function build_router_with 

Source
pub fn build_router_with(
    engine: Engine,
    registry: SpawnerRegistry,
    store: Option<Arc<dyn BlueprintStore>>,
) -> Router
Expand description

Build form where the caller supplies a registry and an optional BlueprintStore. The Operator callback path (= external HTTP / WS callers acting as an Operator) must be pre-registered via engine.register_* (= the engine is the SoT). See the operator_ws module doc and OperatorInfo (engine-side ctx.rs) for details.