pub struct InputActionTriggered {
pub device_id: Option<String>,
pub user_id: Option<String>,
pub name: Option<String>,
pub timestamp: Option<i64>,
pub trigger: Option<ActionTrigger>,
}
Expand description
Action triggered by digital input device ( buttons on gamepad or key on key board )
Fields
device_id: Option<String>
The device id
user_id: Option<String>
The id of user whome is bound to the device
name: Option<String>
The name of the action
timestamp: Option<i64>
The time the action is triggered
trigger: Option<ActionTrigger>
The device’s state when trggering the action
Implementations
sourceimpl InputActionTriggered
impl InputActionTriggered
pub fn new<F1, F2, F3, F4, F5>(
device_id: F1,
user_id: F2,
name: F3,
timestamp: F4,
trigger: F5
) -> InputActionTriggeredwhere
F1: Into<Option<String>>,
F2: Into<Option<String>>,
F3: Into<Option<String>>,
F4: Into<Option<i64>>,
F5: Into<Option<ActionTrigger>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<InputActionTriggered>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for InputActionTriggered
impl Clone for InputActionTriggered
sourcefn clone(&self) -> InputActionTriggered
fn clone(&self) -> InputActionTriggered
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 InputActionTriggered
impl Debug for InputActionTriggered
sourceimpl Default for InputActionTriggered
impl Default for InputActionTriggered
sourceimpl Hash for InputActionTriggered
impl Hash for InputActionTriggered
sourceimpl Ord for InputActionTriggered
impl Ord for InputActionTriggered
sourcefn cmp(&self, other: &InputActionTriggered) -> Ordering
fn cmp(&self, other: &InputActionTriggered) -> 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<InputActionTriggered> for InputActionTriggered
impl PartialEq<InputActionTriggered> for InputActionTriggered
sourcefn eq(&self, other: &InputActionTriggered) -> bool
fn eq(&self, other: &InputActionTriggered) -> bool
sourceimpl PartialOrd<InputActionTriggered> for InputActionTriggered
impl PartialOrd<InputActionTriggered> for InputActionTriggered
sourcefn partial_cmp(&self, other: &InputActionTriggered) -> Option<Ordering>
fn partial_cmp(&self, other: &InputActionTriggered) -> 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 InputActionTriggered
impl StructuralEq for InputActionTriggered
impl StructuralPartialEq for InputActionTriggered
Auto Trait Implementations
impl RefUnwindSafe for InputActionTriggered
impl Send for InputActionTriggered
impl Sync for InputActionTriggered
impl Unpin for InputActionTriggered
impl UnwindSafe for InputActionTriggered
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