pub struct LocalizationServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,{ /* private fields */ }
Implementations
sourceimpl<IP, OP> LocalizationServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
impl<IP, OP> LocalizationServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
pub fn new(
input_protocol: IP,
output_protocol: OP
) -> LocalizationServiceSyncClient<IP, OP>
Trait Implementations
sourceimpl<IP, OP> TThriftClient for LocalizationServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
impl<IP, OP> TThriftClient for LocalizationServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
sourcefn 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. Read more
sourcefn 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. Read more
sourcefn 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. Read moresourcefn 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. Read more
impl<IP, OP> TLocalizationServiceSyncClientMarker for LocalizationServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
Auto Trait Implementations
impl<IP, OP> RefUnwindSafe for LocalizationServiceSyncClient<IP, OP>where
IP: RefUnwindSafe,
OP: RefUnwindSafe,
impl<IP, OP> Send for LocalizationServiceSyncClient<IP, OP>where
IP: Send,
OP: Send,
impl<IP, OP> Sync for LocalizationServiceSyncClient<IP, OP>where
IP: Sync,
OP: Sync,
impl<IP, OP> Unpin for LocalizationServiceSyncClient<IP, OP>where
IP: Unpin,
OP: Unpin,
impl<IP, OP> UnwindSafe for LocalizationServiceSyncClient<IP, OP>where
IP: UnwindSafe,
OP: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<C> TLocalizationServiceSyncClient for Cwhere
C: TThriftClient + TLocalizationServiceSyncClientMarker,
impl<C> TLocalizationServiceSyncClient for Cwhere
C: TThriftClient + TLocalizationServiceSyncClientMarker,
sourcefn switch_language(
&mut self,
language: String,
load_all_context: bool,
remove_old: bool
) -> Result<bool, Error>
fn switch_language(
&mut self,
language: String,
load_all_context: bool,
remove_old: bool
) -> Result<bool, Error>
Switch language to specified one.
sourcefn get_current_language(&mut self) -> Result<String, Error>
fn get_current_language(&mut self) -> Result<String, Error>
Get currently active language
sourcefn switch_context(
&mut self,
context: String,
language: String
) -> Result<bool, Error>
fn switch_context(
&mut self,
context: String,
language: String
) -> Result<bool, Error>
Switch a context of the language.
sourcefn hint_context(&mut self) -> Result<String, Error>
fn hint_context(&mut self) -> Result<String, Error>
Get currently active context.
sourcefn get_string(
&mut self,
key: String,
context: String,
language: String
) -> Result<String, Error>
fn get_string(
&mut self,
key: String,
context: String,
language: String
) -> Result<String, Error>
Get a localization string.
Return: localization string. Read more