Skip to main content

run_qot_proto_json

Function run_qot_proto_json 

Source
async fn run_qot_proto_json<C2S, F, Fut>(
    server: &FutuServer,
    tool_name: &'static str,
    label: &'static str,
    req: ProtoJsonReq,
    req_ctx: RequestContext<RoleServer>,
    handler: F,
) -> Result<String, String>
where C2S: DeserializeOwned, F: FnOnce(Arc<FutuClient>, C2S) -> Fut, Fut: Future<Output = Result<String>>,