Trait thrift::TThriftClient

source ·
pub trait TThriftClient {
    fn i_prot_mut(&mut self) -> &mut dyn TInputProtocol;
    fn o_prot_mut(&mut self) -> &mut dyn TOutputProtocol;
    fn sequence_number(&self) -> i32;
    fn increment_sequence_number(&mut self) -> i32;
}
Expand description

Specifies the minimum functionality an auto-generated client should provide to communicate with a Thrift server.

Required Methods

Returns the input protocol used to read serialized Thrift messages from the Thrift server.

Returns the output protocol used to write serialized Thrift messages to the Thrift server.

Returns the sequence number of the last message written to the Thrift server. Returns 0 if no messages have been written. Sequence numbers should never be negative, and this method returns an i32 simply because the Thrift protocol encodes sequence numbers as i32 on the wire.

Increments the sequence number, indicating that a message with that number has been sent to the Thrift server.

Implementors