pub async fn dispatch_request<'a, S, R: RequestEndpointSet<S>>(
state: &'a S,
path_hash: RequestPathHash,
request: InboundRequest<'a>,
sink: &'a mut dyn ResponseSink,
) -> Result<(), Decline>Expand description
Route one request to the handler its path_hash selects, building the RequestContext over
the app’s shared state and the runner’s grant sink. RequestEndpointSet::dispatch is a static fn, so
the runner dispatches with only &state and the endpoint-set type R — no Router wrapper.