pub enum McpConnectionStatus {
Connected,
Disconnected,
Connecting,
Error(String),
}Expand description
Stable since 0.63.0
Connection status of an MCP server (Phase 2).Variants§
Connected
Server is connected and ready.
Disconnected
Server is configured but not connected (lazy).
Connecting
Connection attempt is in progress.
Error(String)
Connection failed with an error message.
Trait Implementations§
Source§impl Clone for McpConnectionStatus
impl Clone for McpConnectionStatus
Source§fn clone(&self) -> McpConnectionStatus
fn clone(&self) -> McpConnectionStatus
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 moreSource§impl Debug for McpConnectionStatus
impl Debug for McpConnectionStatus
impl Eq for McpConnectionStatus
Source§impl PartialEq for McpConnectionStatus
impl PartialEq for McpConnectionStatus
impl StructuralPartialEq for McpConnectionStatus
Auto Trait Implementations§
impl Freeze for McpConnectionStatus
impl RefUnwindSafe for McpConnectionStatus
impl Send for McpConnectionStatus
impl Sync for McpConnectionStatus
impl Unpin for McpConnectionStatus
impl UnsafeUnpin for McpConnectionStatus
impl UnwindSafe for McpConnectionStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.