pub struct McpServer {
pub name: String,
pub transport: McpTransport,
pub proxy: bool,
}Fields§
§name: String§transport: McpTransport§proxy: boolImplementations§
Source§impl McpServer
impl McpServer
pub fn new( name: impl Into<String>, transport: McpTransport, proxy: bool, ) -> Self
Sourcepub fn try_clone(&self) -> Result<Self, McpServerCloneError>
pub fn try_clone(&self) -> Result<Self, McpServerCloneError>
Clone this server config. Fails for McpTransport::InMemory, whose
boxed service cannot be duplicated and so cannot be shared across
independently-spawned MCP managers.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for McpServer
impl !UnwindSafe for McpServer
impl Freeze for McpServer
impl Send for McpServer
impl Sync for McpServer
impl Unpin for McpServer
impl UnsafeUnpin 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