pub struct Action { /* private fields */ }Expand description
As in Rewired, an Action is a application/consumer facing event which a
User can trigger via a Device.
To configure an action:
- Call
System::add_action - Add the
Action Idused inadd_actionto add the action to anaction set. - Add the action set via
System::add_action_set. - Enable the action set for a given user via
System::mark_action_set_enabled.
Once configured, System::get_user_action can be called to get the action state.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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