pub struct StdioMcpClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for StdioMcpClient
impl Debug for StdioMcpClient
Source§impl McpClient for StdioMcpClient
impl McpClient for StdioMcpClient
fn server_name(&self) -> &str
Source§fn list_tools<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ToolDescriptor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_tools<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ToolDescriptor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List the tools the server advertises.
Source§fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 ToolCall,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 ToolCall,
) -> Pin<Box<dyn Future<Output = Result<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invoke a tool. The orchestrator is responsible for the human-in-the-
loop approval; this trait is the raw RPC.
Auto Trait Implementations§
impl !Freeze for StdioMcpClient
impl !RefUnwindSafe for StdioMcpClient
impl Send for StdioMcpClient
impl Sync for StdioMcpClient
impl Unpin for StdioMcpClient
impl UnsafeUnpin for StdioMcpClient
impl !UnwindSafe for StdioMcpClient
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