pub trait JsonRpcServerHandler: Send + Sync {
// Required method
fn handle_batch_request<'life0, 'async_trait>(
&'life0 self,
requests: Vec<JsonRpcRequest>
) -> Pin<Box<dyn Future<Output = Vec<JsonRpcResponseData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn handle_request<'life0, 'async_trait>(
&'life0 self,
request: JsonRpcRequest
) -> Pin<Box<dyn Future<Output = JsonRpcResponseData> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}