pub enum MethodReply {
Success(Value),
Error {
code: i64,
message: String,
data: Option<Value>,
},
}Expand description
Outcome of a non-tool JSON-RPC method handled by a server extension.
Variants§
Success(Value)
Successful JSON-RPC result.
Error
JSON-RPC error with an optional structured data payload.
Implementations§
Trait Implementations§
Source§impl Clone for MethodReply
impl Clone for MethodReply
Auto Trait Implementations§
impl Forget for MethodReply
impl Freeze for MethodReply
impl RefUnwindSafe for MethodReply
impl Send for MethodReply
impl Sync for MethodReply
impl Unpin for MethodReply
impl UnsafeUnpin for MethodReply
impl UnwindSafe for MethodReply
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