pub struct ProtocolHandler { /* private fields */ }Expand description
MCP protocol handler.
Implementations§
Source§impl ProtocolHandler
impl ProtocolHandler
pub fn new() -> Self
Sourcepub async fn handle_request(&self, request: JsonRpcRequest) -> JsonRpcResponse
pub async fn handle_request(&self, request: JsonRpcRequest) -> JsonRpcResponse
Handle a JSON-RPC request.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProtocolHandler
impl !UnwindSafe for ProtocolHandler
impl Freeze for ProtocolHandler
impl Send for ProtocolHandler
impl Sync for ProtocolHandler
impl Unpin for ProtocolHandler
impl UnsafeUnpin for ProtocolHandler
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