hyperlane_plugin_mcp/
type.rs1use super::*;
2
3pub type McpToolFuture = Pin<Box<dyn Future<Output = Result<McpToolResult, McpError>> + Send>>;
5
6pub type McpToolHandler = Arc<dyn Fn(Value) -> McpToolFuture + Send + Sync>;
8
9pub type McpResourceFuture =
11 Pin<Box<dyn Future<Output = Result<McpResourceContent, McpError>> + Send>>;
12
13pub type McpResourceHandler = Arc<dyn Fn(String) -> McpResourceFuture + Send + Sync>;
15
16pub type McpPromptFuture = Pin<Box<dyn Future<Output = Result<Value, McpError>> + Send>>;
18
19pub type McpPromptHandler = Arc<dyn Fn(Value) -> McpPromptFuture + Send + Sync>;