pub struct Response {
pub id: u32,
pub result: Result<Value, Value>,
}
Expand description
Represents a MessagePack-RPC
response as described in the
specifications.
After a client sends a Request
, the server will send a response back.
Fields§
§id: u32
The id
of the Request
that triggered this response.
result: Result<Value, Value>
The result of the Request
that triggered this response.
Trait Implementations§
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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