pub struct MCPServer { /* private fields */ }Implementations§
Source§impl MCPServer
impl MCPServer
pub fn new(handler: JsonToolsHandler) -> Self
pub async fn register_tools(&mut self) -> Result<()>
pub async fn handle_request(&self, input: &str) -> Result<String>
Auto Trait Implementations§
impl Freeze for MCPServer
impl RefUnwindSafe for MCPServer
impl Send for MCPServer
impl Sync for MCPServer
impl Unpin for MCPServer
impl UnwindSafe for MCPServer
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