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
RpcRequest
RpcResponse
RpcNotification
Trait Implementations
sourceimpl Clone for RpcMessage
impl Clone for RpcMessage
sourcefn clone(&self) -> RpcMessage
fn clone(&self) -> RpcMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RpcMessage
impl Debug for RpcMessage
sourceimpl PartialEq<RpcMessage> for RpcMessage
impl PartialEq<RpcMessage> for RpcMessage
sourcefn eq(&self, other: &RpcMessage) -> bool
fn eq(&self, other: &RpcMessage) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RpcMessage) -> bool
fn ne(&self, other: &RpcMessage) -> bool
This method tests for !=
.
impl StructuralPartialEq for RpcMessage
Auto Trait Implementations
impl RefUnwindSafe for RpcMessage
impl Send for RpcMessage
impl Sync for RpcMessage
impl Unpin for RpcMessage
impl UnwindSafe for RpcMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more