pub struct McpResponse { /* private fields */ }Expand description
A JSON tree admitted before it crosses the transport/runtime boundary. Private ownership keeps both guest conversion and recursive destruction bounded.
Implementations§
Source§impl McpResponse
impl McpResponse
Sourcepub fn take(value: &mut Value) -> Result<Self, McpCallError>
pub fn take(value: &mut Value) -> Result<Self, McpCallError>
Validate a transport-owned tree, then move it without cloning or encoding. On rejection the transport retains ownership. Its decoder must enforce nesting limits while parsing, including for values it never returns.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpResponse
impl RefUnwindSafe for McpResponse
impl Send for McpResponse
impl Sync for McpResponse
impl Unpin for McpResponse
impl UnsafeUnpin for McpResponse
impl UnwindSafe for McpResponse
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