Trait RpcServer
Source pub trait RpcServer:
Sync
+ Send
+ 'static {
// Provided methods
fn handle_notification<'life0, 'async_trait>(
&'life0 self,
_method: String,
_params: Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: '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 Self: 'async_trait,
'life0: 'async_trait { ... }
}