Skip to main content

dispatch_model

Function dispatch_model 

Source
pub async fn dispatch_model<H: ModelHandler>(
    handler: &H,
    ctx: &EnvelopeContext,
    body: &DecodedRequestBody,
) -> Result<(Vec<u8>, Option<Continuation>)>
Expand description

Dispatch a Model request: deserialize, call handler, serialize response.