pub struct McpServerChannels {
pub inbound_tx: Sender<ClientInbound>,
pub outbound_tx: Sender<ServerOutbound>,
pub outbound_rx: Receiver<ServerOutbound>,
}Expand description
Channel handles for communicating with the McpServer.
This struct provides the external interface for sending messages to and receiving messages from the server.
Fields§
§inbound_tx: Sender<ClientInbound>Send inbound messages (from client) to the server.
outbound_tx: Sender<ServerOutbound>Send outbound messages (to client) directly. Used for transport-level errors (e.g., parse errors) that bypass the server.
outbound_rx: Receiver<ServerOutbound>Receive outbound messages (to client) from the server.
Auto Trait Implementations§
impl Freeze for McpServerChannels
impl RefUnwindSafe for McpServerChannels
impl Send for McpServerChannels
impl Sync for McpServerChannels
impl Unpin for McpServerChannels
impl UnwindSafe for McpServerChannels
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