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