Skip to main content

dispatch

Function dispatch 

Source
pub async fn dispatch<T, R>(
    provider: &Arc<ServiceProvider>,
    req: T,
) -> Result<R>
where T: IRequest<R> + Send + 'static, R: Serialize + Send + 'static,
Expand description

Dispatch a request through the handler registry, pipeline, and call bridge.