pub enum RpcMessage {
RpcRequest {
msgid: u64,
method: String,
params: Vec<Value>,
},
RpcResponse {
msgid: u64,
error: Value,
result: Value,
},
RpcNotification {
method: String,
params: Vec<Value>,
},
}Expand description
A msgpack-rpc message, see https://github.com/msgpack-rpc/msgpack-rpc/blob/master/spec.md
Variants§
Trait Implementations§
Source§impl Clone for RpcMessage
impl Clone for RpcMessage
Source§fn clone(&self) -> RpcMessage
fn clone(&self) -> RpcMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RpcMessage
impl Debug for RpcMessage
Source§impl PartialEq for RpcMessage
impl PartialEq for RpcMessage
impl StructuralPartialEq for RpcMessage
Auto Trait Implementations§
impl Freeze for RpcMessage
impl RefUnwindSafe for RpcMessage
impl Send for RpcMessage
impl Sync for RpcMessage
impl Unpin for RpcMessage
impl UnwindSafe for RpcMessage
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