pub struct McpFrame {
pub value: Value,
}Expand description
A single JSON-RPC frame exchanged with an MCP server.
This is the low-level wire unit. Most users will not interact with McpFrame
directly; instead use McpConnection or the higher-level adapters.
Fields§
§value: ValueThe raw JSON-RPC value (request, response, or notification).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpFrame
impl<'de> Deserialize<'de> for McpFrame
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 StructuralPartialEq for McpFrame
Auto Trait Implementations§
impl Freeze for McpFrame
impl RefUnwindSafe for McpFrame
impl Send for McpFrame
impl Sync for McpFrame
impl Unpin for McpFrame
impl UnsafeUnpin for McpFrame
impl UnwindSafe for McpFrame
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