Skip to main content

HandlerFn

Type Alias HandlerFn 

Source
pub type HandlerFn<Req, Res> = Arc<dyn Fn(Req) -> BoxFuture<'static, McpResult<Res>> + Send + Sync + 'static>;
Expand description

Boxed handler function for tool calls

Aliased Typeยง

pub struct HandlerFn<Req, Res> { /* private fields */ }