pub trait ServiceDispatch: Send + Sync {
// Required methods
fn dispatch<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
method: &'life1 str,
args_json: &'life2 str,
client: &'life3 dyn RpcClient,
) -> Pin<Box<dyn Future<Output = Result<ServiceDispatchResult, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn metadata(&self) -> (&'static str, &'static [MethodMeta]);
}Expand description
Trait for service-specific dispatch. Implemented via macro from generated code.