pub struct RuntimeMcpServerLifecycleHandle { /* private fields */ }Expand description
Runtime-backed McpServerLifecycleHandle impl.
Routes every trait method to the corresponding DSL input on the session’s shared MeerkatMachine DSL authority.
Implementations§
Trait Implementations§
Source§impl McpServerLifecycleHandle for RuntimeMcpServerLifecycleHandle
impl McpServerLifecycleHandle for RuntimeMcpServerLifecycleHandle
Source§fn apply_connect_pending(
&self,
server_id: &str,
) -> Result<(), DslTransitionError>
fn apply_connect_pending( &self, server_id: &str, ) -> Result<(), DslTransitionError>
Fire
McpServerConnectPending { server_id } — server staged for
background connect.Source§fn apply_connected(&self, server_id: &str) -> Result<(), DslTransitionError>
fn apply_connected(&self, server_id: &str) -> Result<(), DslTransitionError>
Fire
McpServerConnected { server_id } — handshake succeeded.Source§fn apply_failed(
&self,
server_id: &str,
error: &str,
) -> Result<(), DslTransitionError>
fn apply_failed( &self, server_id: &str, error: &str, ) -> Result<(), DslTransitionError>
Fire
McpServerFailed { server_id, error } — handshake failed.Source§fn apply_disconnected(&self, server_id: &str) -> Result<(), DslTransitionError>
fn apply_disconnected(&self, server_id: &str) -> Result<(), DslTransitionError>
Fire
McpServerDisconnected { server_id } — connection closed.Source§fn apply_reload(&self, server_id: &str) -> Result<(), DslTransitionError>
fn apply_reload(&self, server_id: &str) -> Result<(), DslTransitionError>
Fire
McpServerReload { server_id } — reload requested; server returns
to PendingConnect while the shell tears down and redials.Auto Trait Implementations§
impl Freeze for RuntimeMcpServerLifecycleHandle
impl RefUnwindSafe for RuntimeMcpServerLifecycleHandle
impl Send for RuntimeMcpServerLifecycleHandle
impl Sync for RuntimeMcpServerLifecycleHandle
impl Unpin for RuntimeMcpServerLifecycleHandle
impl UnsafeUnpin for RuntimeMcpServerLifecycleHandle
impl UnwindSafe for RuntimeMcpServerLifecycleHandle
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