pub struct McpServer {
pub name: String,
pub transport: McpTransport,
pub tool_exposure: ToolExposure,
}Fields§
§name: String§transport: McpTransport§tool_exposure: ToolExposureImplementations§
Source§impl McpServer
impl McpServer
pub fn new( name: impl Into<String>, transport: McpTransport, tool_exposure: ToolExposure, ) -> Self
pub fn with_exposure(self, exposure: ToolExposure) -> Self
pub fn has_deferred_tools(&self) -> bool
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