#[non_exhaustive]pub enum McpConnectionState {
Disconnected,
Connecting,
Connected,
Reconnecting,
Shutdown,
}Expand description
Connection state of an MCP server.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disconnected
Not yet connected.
Connecting
Connection attempt in progress.
Connected
Connected and ready.
Reconnecting
Reconnection in progress after a drop.
Shutdown
Server has been shut down.
Trait Implementations§
Source§impl Clone for McpConnectionState
impl Clone for McpConnectionState
Source§fn clone(&self) -> McpConnectionState
fn clone(&self) -> McpConnectionState
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 McpConnectionState
impl Debug for McpConnectionState
Source§impl Default for McpConnectionState
impl Default for McpConnectionState
Source§fn default() -> McpConnectionState
fn default() -> McpConnectionState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpConnectionState
impl<'de> Deserialize<'de> for McpConnectionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for McpConnectionState
impl PartialEq for McpConnectionState
Source§impl Serialize for McpConnectionState
impl Serialize for McpConnectionState
impl Copy for McpConnectionState
impl Eq for McpConnectionState
impl StructuralPartialEq for McpConnectionState
Auto Trait Implementations§
impl Freeze for McpConnectionState
impl RefUnwindSafe for McpConnectionState
impl Send for McpConnectionState
impl Sync for McpConnectionState
impl Unpin for McpConnectionState
impl UnsafeUnpin for McpConnectionState
impl UnwindSafe for McpConnectionState
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