pub async fn build_service_from_config<Request, Response>(
command_name: &str,
command_arguments: &[&str],
stdio_client_config: Option<StdioClientConfig>,
http_client_config: Option<HttpClientConfig>,
) -> Result<Box<dyn Service<Request, Error = Box<dyn Error + Sync + Send>, Future = Pin<Box<dyn Future<Output = Result<ServiceResponse<Response>, Box<dyn Error + Sync + Send>>> + Send>>, Response = ServiceResponse<Response>> + Sync + Send>, Box<dyn Error + Sync + Send>>where
Request: RequestHttpConvert<Request> + RequestJsonRpcConvert<Request> + Clone + Send + Sync + 'static,
Response: ResponseHttpConvert<Request, Response> + ResponseJsonRpcConvert<Request, Response> + Send + Sync + 'static,Expand description
Creates a StdioClient or
HttpClient service depending
on the arguments provided. If http_client_config is Some, an
HTTP-based service will be created. If it is None, a stdio-based service
will be created.