pub struct PersistentActionConfig {
pub action_id: ActionId,
pub value: u16,
pub modifier_mask: ModifierMask,
}Expand description
The action to assign with
set_persistent_action.
Fields§
§action_id: ActionIdThe action to perform when triggered.
value: u16The HID usage code, displacement, or internal-function index to send.
modifier_mask: ModifierMaskKeyboard modifiers to apply (keyboard actions only).
Trait Implementations§
Source§impl Clone for PersistentActionConfig
impl Clone for PersistentActionConfig
Source§fn clone(&self) -> PersistentActionConfig
fn clone(&self) -> PersistentActionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PersistentActionConfig
Source§impl Debug for PersistentActionConfig
impl Debug for PersistentActionConfig
impl Eq for PersistentActionConfig
Source§impl Hash for PersistentActionConfig
impl Hash for PersistentActionConfig
Source§impl PartialEq for PersistentActionConfig
impl PartialEq for PersistentActionConfig
impl StructuralPartialEq for PersistentActionConfig
Auto Trait Implementations§
impl Freeze for PersistentActionConfig
impl RefUnwindSafe for PersistentActionConfig
impl Send for PersistentActionConfig
impl Sync for PersistentActionConfig
impl Unpin for PersistentActionConfig
impl UnsafeUnpin for PersistentActionConfig
impl UnwindSafe for PersistentActionConfig
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