pub enum McpTransport {
Stdio(Child),
Http {
url: String,
client: Client,
},
}Expand description
Transport mode for an MCP connection.
Variants§
Stdio(Child)
Spawn a subprocess and communicate via stdio (stdin/stdout).
Http
HTTP-based transport (streamable HTTP or SSE).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for McpTransport
impl !UnwindSafe for McpTransport
impl Freeze for McpTransport
impl Send for McpTransport
impl Sync for McpTransport
impl Unpin for McpTransport
impl UnsafeUnpin for McpTransport
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