pub struct RuyiJoystickInput {
pub device_id: Option<String>,
pub user_id: Option<String>,
pub raw_offset: Option<i32>,
pub value: Option<i32>,
pub timestamp: Option<i32>,
pub sequence: Option<i32>,
pub offset: Option<JoystickOffset>,
}
Fields
device_id: Option<String>
user_id: Option<String>
raw_offset: Option<i32>
value: Option<i32>
timestamp: Option<i32>
sequence: Option<i32>
offset: Option<JoystickOffset>
Implementations
sourceimpl RuyiJoystickInput
impl RuyiJoystickInput
pub fn new<F1, F2, F3, F4, F5, F6, F7>(
device_id: F1,
user_id: F2,
raw_offset: F3,
value: F4,
timestamp: F5,
sequence: F6,
offset: F7
) -> RuyiJoystickInputwhere
F1: Into<Option<String>>,
F2: Into<Option<String>>,
F3: Into<Option<i32>>,
F4: Into<Option<i32>>,
F5: Into<Option<i32>>,
F6: Into<Option<i32>>,
F7: Into<Option<JoystickOffset>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<RuyiJoystickInput>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for RuyiJoystickInput
impl Clone for RuyiJoystickInput
sourcefn clone(&self) -> RuyiJoystickInput
fn clone(&self) -> RuyiJoystickInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RuyiJoystickInput
impl Debug for RuyiJoystickInput
sourceimpl Default for RuyiJoystickInput
impl Default for RuyiJoystickInput
sourceimpl Hash for RuyiJoystickInput
impl Hash for RuyiJoystickInput
sourceimpl Ord for RuyiJoystickInput
impl Ord for RuyiJoystickInput
sourcefn cmp(&self, other: &RuyiJoystickInput) -> Ordering
fn cmp(&self, other: &RuyiJoystickInput) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<RuyiJoystickInput> for RuyiJoystickInput
impl PartialEq<RuyiJoystickInput> for RuyiJoystickInput
sourcefn eq(&self, other: &RuyiJoystickInput) -> bool
fn eq(&self, other: &RuyiJoystickInput) -> bool
sourceimpl PartialOrd<RuyiJoystickInput> for RuyiJoystickInput
impl PartialOrd<RuyiJoystickInput> for RuyiJoystickInput
sourcefn partial_cmp(&self, other: &RuyiJoystickInput) -> Option<Ordering>
fn partial_cmp(&self, other: &RuyiJoystickInput) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for RuyiJoystickInput
impl StructuralEq for RuyiJoystickInput
impl StructuralPartialEq for RuyiJoystickInput
Auto Trait Implementations
impl RefUnwindSafe for RuyiJoystickInput
impl Send for RuyiJoystickInput
impl Sync for RuyiJoystickInput
impl Unpin for RuyiJoystickInput
impl UnwindSafe for RuyiJoystickInput
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