Enum rmp_rpc::Message
[−]
[src]
pub enum Message { Request(Request), Response(Response), Notification(Notification), }
Represents a MessagePack-RPC
message as described in the
specifications
Variants
Request(Request)
Response(Response)
Notification(Notification)
Methods
impl Message
[src]
fn decode<R>(rd: &mut R) -> Result<Message, DecodeError> where
R: Read,
R: Read,
fn pack(&self) -> Vec<u8>
fn encode<W: Write>(&self, wr: &mut W) -> Result<()>
Trait Implementations
impl PartialEq for Message
[src]
fn eq(&self, __arg_0: &Message) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Message) -> bool
This method tests for !=
.
impl Clone for Message
[src]
fn clone(&self) -> Message
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more