pub enum McpConnectParams {
Stdio {
command: String,
args: Vec<String>,
env: BTreeMap<String, String>,
},
Http {
url: String,
headers: BTreeMap<String, String>,
},
Sse {
url: String,
headers: BTreeMap<String, String>,
},
}Expand description
How an McpClient was connected — kept on the client so
McpClient::reconnect can rebuild an equivalent connection without
the caller having to remember its own parameters.
Variants§
Stdio
Spawned-process transport.
Fields
Http
Streamable-HTTP (non-streaming) transport.
Sse
Legacy HTTP+SSE transport.
Trait Implementations§
Source§impl Clone for McpConnectParams
impl Clone for McpConnectParams
Auto Trait Implementations§
impl Freeze for McpConnectParams
impl RefUnwindSafe for McpConnectParams
impl Send for McpConnectParams
impl Sync for McpConnectParams
impl Unpin for McpConnectParams
impl UnsafeUnpin for McpConnectParams
impl UnwindSafe for McpConnectParams
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