#[non_exhaustive]pub enum McpServer {
Stdio(StdioServer),
StreamableHttp(RemoteServer),
Sse(RemoteServer),
}Expand description
The closed union of §7.2.1 server variants, discriminated by type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stdio(StdioServer)
"type": "stdio" — a local subprocess speaking MCP over stdio.
StreamableHttp(RemoteServer)
"type": "streamable-http" — the current MCP Streamable HTTP transport.
Sse(RemoteServer)
"type": "sse" — the deprecated HTTP+SSE transport (MCP 2024-11-05).
Implementations§
Trait Implementations§
impl StructuralPartialEq for McpServer
Auto Trait Implementations§
impl Freeze for McpServer
impl RefUnwindSafe for McpServer
impl Send for McpServer
impl Sync for McpServer
impl Unpin for McpServer
impl UnsafeUnpin for McpServer
impl UnwindSafe for McpServer
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