pub struct McpMessage {
pub envelope: JsonRpcEnvelope,
pub kind: MessageKind,
}Expand description
Shallow envelope paired with its classification. Used inside
McpRequest (client direction) and Response::McpBuffered (server
direction).
Fields§
§envelope: JsonRpcEnvelope§kind: MessageKindTrait Implementations§
Source§impl Clone for McpMessage
impl Clone for McpMessage
Source§fn clone(&self) -> McpMessage
fn clone(&self) -> McpMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for McpMessage
impl RefUnwindSafe for McpMessage
impl Send for McpMessage
impl Sync for McpMessage
impl Unpin for McpMessage
impl UnsafeUnpin for McpMessage
impl UnwindSafe for McpMessage
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