pub struct StdioClientTransport<R, W>{ /* private fields */ }Expand description
Standard I/O transport for MCP client
Communicates with an MCP server via stdin/stdout streams. Typically used with child process spawning.
Implementations§
Source§impl<R, W> StdioClientTransport<R, W>
impl<R, W> StdioClientTransport<R, W>
Trait Implementations§
Source§impl<R, W> ClientTransport for StdioClientTransport<R, W>
impl<R, W> ClientTransport for StdioClientTransport<R, W>
Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 Request,
) -> Pin<Box<dyn Future<Output = ClientResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 Request,
) -> Pin<Box<dyn Future<Output = ClientResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a JSON-RPC request to the server
Auto Trait Implementations§
impl<R, W> Freeze for StdioClientTransport<R, W>
impl<R, W> !RefUnwindSafe for StdioClientTransport<R, W>
impl<R, W> Send for StdioClientTransport<R, W>
impl<R, W> Sync for StdioClientTransport<R, W>
impl<R, W> Unpin for StdioClientTransport<R, W>
impl<R, W> !UnwindSafe for StdioClientTransport<R, W>
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