pub enum McpEndpoint {
Tcp {
host: String,
port: u16,
tls: bool,
path: String,
host_header: String,
},
Unix {
socket: String,
path: String,
},
Vsock {
cid: u32,
port: u32,
path: String,
},
}Expand description
A resolved MCP endpoint: where to connect + the HTTP path/Host to send.
Variants§
Tcp
https://host[:port]/path (TCP + TLS) or http://… (plain TCP).
Unix
unix:/socket/path — HTTP over a unix socket to a local sidecar.
Vsock
vsock:cid:port — HTTP over AF_VSOCK to an enclave/microVM peer.
Implementations§
Source§impl McpEndpoint
impl McpEndpoint
Trait Implementations§
Source§impl Clone for McpEndpoint
impl Clone for McpEndpoint
Source§fn clone(&self) -> McpEndpoint
fn clone(&self) -> McpEndpoint
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 McpEndpoint
impl Debug for McpEndpoint
impl Eq for McpEndpoint
Source§impl PartialEq for McpEndpoint
impl PartialEq for McpEndpoint
impl StructuralPartialEq for McpEndpoint
Auto Trait Implementations§
impl Freeze for McpEndpoint
impl RefUnwindSafe for McpEndpoint
impl Send for McpEndpoint
impl Sync for McpEndpoint
impl Unpin for McpEndpoint
impl UnsafeUnpin for McpEndpoint
impl UnwindSafe for McpEndpoint
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