pub trait McpResourceHandler: Send + Sync {
// Required method
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
ctx: McpRequestContext,
) -> Pin<Box<dyn Future<Output = Result<ResourcesReadResult, AppError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}Expand description
Handler for an MCP resource.