Trait McpClientHandler
Source pub trait McpClientHandler: Send + Sync {
// Required methods
fn handle_request<'life0, 'life1, 'async_trait>(
&'life0 self,
server_jsonrpc_request: RequestFromServer,
runtime: &'life1 dyn McpClient,
) -> Pin<Box<dyn Future<Output = Result<ResultFromClient, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_error<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
jsonrpc_error: &'life1 RpcError,
runtime: &'life2 dyn McpClient,
) -> Pin<Box<dyn Future<Output = SdkResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn handle_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
server_jsonrpc_notification: NotificationFromServer,
runtime: &'life1 dyn McpClient,
) -> Pin<Box<dyn Future<Output = SdkResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_process_error<'life0, 'life1, 'async_trait>(
&'life0 self,
error_message: String,
runtime: &'life1 dyn McpClient,
) -> Pin<Box<dyn Future<Output = SdkResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}