pub enum ServerConfig {
Http {
name: String,
config: StreamableHttpClientTransportConfig,
},
Stdio {
name: String,
command: String,
args: Vec<String>,
env: HashMap<String, String>,
},
InMemory {
name: String,
server: Box<dyn DynService<RoleServer>>,
},
}Expand description
A single connectable MCP server endpoint.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl From<ServerConfig> for McpServerConfig
impl From<ServerConfig> for McpServerConfig
Source§fn from(cfg: ServerConfig) -> Self
fn from(cfg: ServerConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerConfig
impl !RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl !UnwindSafe for ServerConfig
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