pub struct TSIServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,{ /* private fields */ }
Implementations§
Source§impl<IP, OP> TSIServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
impl<IP, OP> TSIServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
pub fn new( input_protocol: IP, output_protocol: OP, ) -> TSIServiceSyncClient<IP, OP>
Trait Implementations§
Source§impl<IP, OP> TThriftClient for TSIServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
impl<IP, OP> TThriftClient for TSIServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
Source§fn i_prot_mut(&mut self) -> &mut dyn TInputProtocol
fn i_prot_mut(&mut self) -> &mut dyn TInputProtocol
Returns the input protocol used to read serialized Thrift messages
from the Thrift server.
Source§fn o_prot_mut(&mut self) -> &mut dyn TOutputProtocol
fn o_prot_mut(&mut self) -> &mut dyn TOutputProtocol
Returns the output protocol used to write serialized Thrift messages
to the Thrift server.
Source§fn sequence_number(&self) -> i32
fn sequence_number(&self) -> i32
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.Source§fn increment_sequence_number(&mut self) -> i32
fn increment_sequence_number(&mut self) -> i32
Increments the sequence number, indicating that a message with that
number has been sent to the Thrift server.
impl<IP, OP> TTSIServiceSyncClientMarker for TSIServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
Auto Trait Implementations§
impl<IP, OP> Freeze for TSIServiceSyncClient<IP, OP>
impl<IP, OP> RefUnwindSafe for TSIServiceSyncClient<IP, OP>where
IP: RefUnwindSafe,
OP: RefUnwindSafe,
impl<IP, OP> Send for TSIServiceSyncClient<IP, OP>
impl<IP, OP> Sync for TSIServiceSyncClient<IP, OP>
impl<IP, OP> Unpin for TSIServiceSyncClient<IP, OP>
impl<IP, OP> UnwindSafe for TSIServiceSyncClient<IP, OP>where
IP: UnwindSafe,
OP: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more