pub struct InputManagerServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,{ /* private fields */ }
Implementations
sourceimpl<IP, OP> InputManagerServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
impl<IP, OP> InputManagerServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
pub fn new(
input_protocol: IP,
output_protocol: OP
) -> InputManagerServiceSyncClient<IP, OP>
Trait Implementations
sourceimpl<IP, OP> TThriftClient for InputManagerServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
impl<IP, OP> TThriftClient for InputManagerServiceSyncClient<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> TInputManagerServiceSyncClientMarker for InputManagerServiceSyncClient<IP, OP>where
IP: TInputProtocol,
OP: TOutputProtocol,
Auto Trait Implementations
impl<IP, OP> RefUnwindSafe for InputManagerServiceSyncClient<IP, OP>where
IP: RefUnwindSafe,
OP: RefUnwindSafe,
impl<IP, OP> Send for InputManagerServiceSyncClient<IP, OP>where
IP: Send,
OP: Send,
impl<IP, OP> Sync for InputManagerServiceSyncClient<IP, OP>where
IP: Sync,
OP: Sync,
impl<IP, OP> Unpin for InputManagerServiceSyncClient<IP, OP>where
IP: Unpin,
OP: Unpin,
impl<IP, OP> UnwindSafe for InputManagerServiceSyncClient<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> TInputManagerServiceSyncClient for Cwhere
C: TThriftClient + TInputManagerServiceSyncClientMarker,
impl<C> TInputManagerServiceSyncClient for Cwhere
C: TThriftClient + TInputManagerServiceSyncClientMarker,
sourcefn get_connected_gamepads(&mut self) -> Result<Vec<GamepadInfo, Global>, Error>
fn get_connected_gamepads(&mut self) -> Result<Vec<GamepadInfo, Global>, Error>
Get the gamepads that are connected corrently
sourcefn set_gamepad_vibration(
&mut self,
device_id: String,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool, Error>
fn set_gamepad_vibration(
&mut self,
device_id: String,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool, Error>
Activate the vibration of gamepad
sourcefn set_gamepad_light(
&mut self,
device_id: String,
r_value: i8,
g_value: i8,
b_value: i8
) -> Result<bool, Error>
fn set_gamepad_light(
&mut self,
device_id: String,
r_value: i8,
g_value: i8,
b_value: i8
) -> Result<bool, Error>
SetGamepadLight_desc
sourcefn set_ruyi_controller_status(
&mut self,
channel: i8,
enable_r: bool,
enable_g: bool,
enable_b: bool,
enable_motor1: bool,
enable_motor2: bool,
shutdown: bool,
r_value: i8,
g_value: i8,
b_value: i8,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool, Error>
fn set_ruyi_controller_status(
&mut self,
channel: i8,
enable_r: bool,
enable_g: bool,
enable_b: bool,
enable_motor1: bool,
enable_motor2: bool,
shutdown: bool,
r_value: i8,
g_value: i8,
b_value: i8,
motor1_value: i8,
motor1_time: i8,
motor2_value: i8,
motor2_time: i8
) -> Result<bool, Error>
Obsolete. Temporary api the change the ruyi controller’s state, will be removed later.