pub enum McpSessionState {
NotInitialized,
Initializing,
Ready,
Failed,
}Expand description
MCP Protocol Session State
Variants§
NotInitialized
Haven’t done MCP handshake yet
Initializing
MCP initialize request sent, waiting for response
Ready
MCP handshake complete, server capabilities received
Failed
MCP protocol failed (handshake failed, incompatible version, etc.)
Trait Implementations§
Source§impl Clone for McpSessionState
impl Clone for McpSessionState
Source§fn clone(&self) -> McpSessionState
fn clone(&self) -> McpSessionState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpSessionState
impl Debug for McpSessionState
Source§impl PartialEq for McpSessionState
impl PartialEq for McpSessionState
impl StructuralPartialEq for McpSessionState
Auto Trait Implementations§
impl Freeze for McpSessionState
impl RefUnwindSafe for McpSessionState
impl Send for McpSessionState
impl Sync for McpSessionState
impl Unpin for McpSessionState
impl UnwindSafe for McpSessionState
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