pub struct ResponseError {
pub code: i32,
pub message: String,
}Expand description
JSON-RPC 2.0 error object.
Populates Response::error when a method call fails. Codes
follow the JSON-RPC 2.0 reserved range (e.g. -32603 for
internal errors).
Fields§
§code: i32Numeric error code. See the JSON-RPC 2.0 spec for reserved
ranges; rlg-mcp returns -32_603 for handler failures.
message: StringHuman-readable error message.
Trait Implementations§
Source§impl Debug for ResponseError
impl Debug for ResponseError
Auto Trait Implementations§
impl Freeze for ResponseError
impl RefUnwindSafe for ResponseError
impl Send for ResponseError
impl Sync for ResponseError
impl Unpin for ResponseError
impl UnsafeUnpin for ResponseError
impl UnwindSafe for ResponseError
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