#[non_exhaustive]pub struct PersistentAction {
pub cid: ControlId,
pub host: HostIndex,
pub action_id: ActionId,
pub value: u16,
pub modifier_mask: ModifierMask,
pub remapped: bool,
}Expand description
The action mapped to a control, from
get_persistent_action.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cid: ControlIdThe control the action belongs to.
host: HostIndexThe host slot the mapping applies to.
action_id: ActionIdThe action performed when triggered.
value: u16The HID usage code, displacement, or internal-function index sent.
modifier_mask: ModifierMaskKeyboard modifiers applied (keyboard actions only).
remapped: boolWhether the control is remapped away from its default behaviour.
Trait Implementations§
Source§impl Clone for PersistentAction
impl Clone for PersistentAction
Source§fn clone(&self) -> PersistentAction
fn clone(&self) -> PersistentAction
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 PersistentAction
Source§impl Debug for PersistentAction
impl Debug for PersistentAction
impl Eq for PersistentAction
Source§impl Hash for PersistentAction
impl Hash for PersistentAction
Source§impl PartialEq for PersistentAction
impl PartialEq for PersistentAction
impl StructuralPartialEq for PersistentAction
Auto Trait Implementations§
impl Freeze for PersistentAction
impl RefUnwindSafe for PersistentAction
impl Send for PersistentAction
impl Sync for PersistentAction
impl Unpin for PersistentAction
impl UnsafeUnpin for PersistentAction
impl UnwindSafe for PersistentAction
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