pub struct McpRuntimeManager { /* private fields */ }Expand description
Lightweight runtime manager that owns resolved launchers/connectors.
The manager is non-destructive: launchers remain available after prepare
is called so callers can reuse connectors or restart stdio servers as
needed.
Implementations§
Source§impl McpRuntimeManager
impl McpRuntimeManager
Sourcepub fn new(launchers: Vec<McpServerLauncher>) -> Self
pub fn new(launchers: Vec<McpServerLauncher>) -> Self
Construct a runtime manager from resolved launchers.
Sourcepub fn available(&self) -> Vec<McpRuntimeSummary>
pub fn available(&self) -> Vec<McpRuntimeSummary>
Returns the available runtimes with tool hints intact.
Sourcepub fn launcher(&self, name: &str) -> Option<McpServerLauncher>
pub fn launcher(&self, name: &str) -> Option<McpServerLauncher>
Returns a cloned launcher/connector by name without mutating storage.
Sourcepub fn prepare(&self, name: &str) -> Result<McpRuntimeHandle, McpRuntimeError>
pub fn prepare(&self, name: &str) -> Result<McpRuntimeHandle, McpRuntimeError>
Start a stdio runtime or hand back HTTP connector metadata.
Trait Implementations§
Source§impl Clone for McpRuntimeManager
impl Clone for McpRuntimeManager
Source§fn clone(&self) -> McpRuntimeManager
fn clone(&self) -> McpRuntimeManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for McpRuntimeManager
impl RefUnwindSafe for McpRuntimeManager
impl Send for McpRuntimeManager
impl Sync for McpRuntimeManager
impl Unpin for McpRuntimeManager
impl UnsafeUnpin for McpRuntimeManager
impl UnwindSafe for McpRuntimeManager
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