pub struct DefaultMcpClient<T: McpTransport> { /* private fields */ }Expand description
MCP client implementation using transport layer
Implementations§
Source§impl<T: McpTransport> DefaultMcpClient<T>
impl<T: McpTransport> DefaultMcpClient<T>
Trait Implementations§
Source§impl<T: McpTransport> McpClient for DefaultMcpClient<T>
impl<T: McpTransport> McpClient for DefaultMcpClient<T>
fn invoke_tool<'life0, 'async_trait>(
&'life0 mut self,
request: McpRequest,
) -> Pin<Box<dyn Future<Output = Result<McpResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_tools<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_server_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<ToolSchema>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<T> Freeze for DefaultMcpClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for DefaultMcpClient<T>where
T: RefUnwindSafe,
impl<T> Send for DefaultMcpClient<T>
impl<T> Sync for DefaultMcpClient<T>
impl<T> Unpin for DefaultMcpClient<T>where
T: Unpin,
impl<T> UnwindSafe for DefaultMcpClient<T>where
T: UnwindSafe,
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