Trait rift::TThriftClient
[−]
[src]
pub trait TThriftClient { fn i_prot_mut(&mut self) -> &mut TInputProtocol; fn o_prot_mut(&mut self) -> &mut TOutputProtocol; fn sequence_number(&self) -> i32; fn increment_sequence_number(&mut self) -> i32; }
Identifies an auto-generated Thrift client and specifies the minimum set of functions implementations should provide for auto-generated code to properly send and receive messages to/from a Thrift server.
Required Methods
fn i_prot_mut(&mut self) -> &mut TInputProtocol
Returns the input protocol used to read serialized Thrift messages from the remote Thrift server.
fn o_prot_mut(&mut self) -> &mut TOutputProtocol
Returns the output protocol used to write serialized Thrift messages to the remote Thrift server.
fn sequence_number(&self) -> i32
Returns the sequence number of the last message written to the remote
Thrift server. Returns 0
if no messages have been written. Sequence
numbers should never be negative; this method returns an i32
because the Thrift protocol encodes sequence numbers as i32
on the
wire.
fn increment_sequence_number(&mut self) -> i32
Increments the sequence number, indicating that a message with that number has been sent to the remote Thrift server.