pub enum DiscoveredMcpServerType {
Stdio,
Http,
Sse,
Memory,
Unknown,
}Expand description
Server transport type: stdio, http, sse (deprecated), or memory
Variants§
Stdio
Server communicates over stdio with a local child process.
Http
Server communicates over streamable HTTP.
Sse
Server communicates over Server-Sent Events (deprecated).
Memory
Server is backed by an in-memory runtime implementation.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for DiscoveredMcpServerType
impl Clone for DiscoveredMcpServerType
Source§fn clone(&self) -> DiscoveredMcpServerType
fn clone(&self) -> DiscoveredMcpServerType
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 DiscoveredMcpServerType
impl Debug for DiscoveredMcpServerType
Source§impl Default for DiscoveredMcpServerType
impl Default for DiscoveredMcpServerType
Source§fn default() -> DiscoveredMcpServerType
fn default() -> DiscoveredMcpServerType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiscoveredMcpServerType
impl<'de> Deserialize<'de> for DiscoveredMcpServerType
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
impl Eq for DiscoveredMcpServerType
Source§impl PartialEq for DiscoveredMcpServerType
impl PartialEq for DiscoveredMcpServerType
Source§fn eq(&self, other: &DiscoveredMcpServerType) -> bool
fn eq(&self, other: &DiscoveredMcpServerType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiscoveredMcpServerType
impl Serialize for DiscoveredMcpServerType
impl StructuralPartialEq for DiscoveredMcpServerType
Auto Trait Implementations§
impl Freeze for DiscoveredMcpServerType
impl RefUnwindSafe for DiscoveredMcpServerType
impl Send for DiscoveredMcpServerType
impl Sync for DiscoveredMcpServerType
impl Unpin for DiscoveredMcpServerType
impl UnsafeUnpin for DiscoveredMcpServerType
impl UnwindSafe for DiscoveredMcpServerType
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