pub struct Response<'a> {
pub result: Option<Value>,
pub error: Option<Error>,
pub id: Id<'a>,
/* private fields */
}
Expand description
Represents a JSON-RPC response.
Fields§
§result: Option<Value>
Result of the method invocation.
error: Option<Error>
Error occurred during method invocation.
id: Id<'a>
Response ID.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Response<'a>
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnwindSafe for Response<'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