pub struct McpErrorContext<'a> {
pub server_id: &'a McpServerId,
pub method: &'a McpMethod,
pub input: Option<&'a Value>,
}Expand description
Context describing which server / method / input produced the
invocation error currently being inspected by McpErrorResponder::handle.
Fields§
§server_id: &'a McpServerIdThe server that returned the error.
method: &'a McpMethodThe MCP method that was invoked.
input: Option<&'a Value>The input payload supplied to the invocation, when available.
Auto Trait Implementations§
impl<'a> Freeze for McpErrorContext<'a>
impl<'a> RefUnwindSafe for McpErrorContext<'a>
impl<'a> Send for McpErrorContext<'a>
impl<'a> Sync for McpErrorContext<'a>
impl<'a> Unpin for McpErrorContext<'a>
impl<'a> UnsafeUnpin for McpErrorContext<'a>
impl<'a> UnwindSafe for McpErrorContext<'a>
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