Struct thrift_codec::message::Message
[−]
[src]
pub struct Message { /* fields omitted */ }
RPC message.
Methods
impl Message
[src]
fn new(
method_name: &str,
kind: MessageKind,
sequence_id: i32,
body: Struct
) -> Self
[src]
method_name: &str,
kind: MessageKind,
sequence_id: i32,
body: Struct
) -> Self
Makes a new Message
instance.
fn call(method_name: &str, sequence_id: i32, body: Struct) -> Self
[src]
Makes a new Message
instance which has the kind MessageKind::Call
.
fn reply(method_name: &str, sequence_id: i32, body: Struct) -> Self
[src]
Makes a new Message
instance which has the kind MessageKind::Reply
.
fn exception(method_name: &str, sequence_id: i32, body: Struct) -> Self
[src]
Makes a new Message
instance which has the kind MessageKind::Exception
.
fn oneway(method_name: &str, sequence_id: i32, body: Struct) -> Self
[src]
Makes a new Message
instance which has the kind MessageKind::Oneway
.
fn method_name(&self) -> &str
[src]
Returns the method name of this message.
fn kind(&self) -> MessageKind
[src]
Returns the kind of this message.
fn sequence_id(&self) -> i32
[src]
Returns the sequence id of this message.
fn body(&self) -> &Struct
[src]
Returns the body of this message.
Trait Implementations
impl Debug for Message
[src]
impl Clone for Message
[src]
fn clone(&self) -> Message
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Message
[src]
fn eq(&self, __arg_0: &Message) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Message) -> bool
[src]
This method tests for !=
.
impl BinaryDecode for Message
[src]
fn binary_decode<R: Read>(reader: &mut R) -> Result<Self>
[src]
Decodes an object.
impl CompactDecode for Message
[src]
fn compact_decode<R: Read>(reader: &mut R) -> Result<Self>
[src]
Decodes an object.