pub enum McpRuntimeHandle {
Stdio(ManagedStdioRuntime),
StreamableHttp(ManagedHttpRuntime),
}Expand description
Handle returned by McpRuntimeManager::prepare for either transport.
Variants§
Stdio(ManagedStdioRuntime)
StreamableHttp(ManagedHttpRuntime)
Implementations§
Source§impl McpRuntimeHandle
impl McpRuntimeHandle
Sourcepub fn tools(&self) -> Option<&McpToolConfig>
pub fn tools(&self) -> Option<&McpToolConfig>
Returns tool hints when present.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for McpRuntimeHandle
impl !UnwindSafe for McpRuntimeHandle
impl Freeze for McpRuntimeHandle
impl Send for McpRuntimeHandle
impl Sync for McpRuntimeHandle
impl Unpin for McpRuntimeHandle
impl UnsafeUnpin for McpRuntimeHandle
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