pub struct CalculatorHandler { /* private fields */ }
Trait Implementations§
Source§impl RequestHandler for CalculatorHandler
impl RequestHandler for CalculatorHandler
Source§fn handle_request<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<Value, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_request<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<Value, McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle an incoming JSON-RPC request
Source§fn handle_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
_method: &'life1 str,
_params: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
_method: &'life1 str,
_params: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), McpError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle an incoming JSON-RPC notification
Source§fn get_capabilities(&self) -> ServerCapabilities
fn get_capabilities(&self) -> ServerCapabilities
Get the server’s capabilities
Auto Trait Implementations§
impl Freeze for CalculatorHandler
impl RefUnwindSafe for CalculatorHandler
impl Send for CalculatorHandler
impl Sync for CalculatorHandler
impl Unpin for CalculatorHandler
impl UnwindSafe for CalculatorHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more