pub trait RpcServer: Sync + Send + 'static {
fn handle_notification<'life0, 'async_trait>(
&'life0 self,
_method: String,
_params: Value
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait,
{ ... }
fn handle_request<'life0, 'async_trait>(
&'life0 self,
_method: String,
_params: Value
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait,
{ ... }
}