pub enum TransportMode {
Stdio,
Http,
}Expand description
Transport mode for the MCP server.
Variants§
Stdio
JSON-RPC 2.0 over stdin/stdout (default; for LLM tool integrations).
Http
JSON-RPC 2.0 over HTTP (for Chrome extension and browser clients).
Trait Implementations§
Source§impl Clone for TransportMode
impl Clone for TransportMode
Source§fn clone(&self) -> TransportMode
fn clone(&self) -> TransportMode
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 moreimpl Copy for TransportMode
Source§impl Debug for TransportMode
impl Debug for TransportMode
Source§impl Default for TransportMode
impl Default for TransportMode
Source§fn default() -> TransportMode
fn default() -> TransportMode
Returns the “default value” for a type. Read more
impl Eq for TransportMode
Source§impl PartialEq for TransportMode
impl PartialEq for TransportMode
Source§fn eq(&self, other: &TransportMode) -> bool
fn eq(&self, other: &TransportMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransportMode
Source§impl ValueEnum for TransportMode
impl ValueEnum for TransportMode
Auto Trait Implementations§
impl Freeze for TransportMode
impl RefUnwindSafe for TransportMode
impl Send for TransportMode
impl Sync for TransportMode
impl Unpin for TransportMode
impl UnsafeUnpin for TransportMode
impl UnwindSafe for TransportMode
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