pub struct Trigger(/* private fields */);Expand description
Configures which button triggers an effect (if any).
The interval limits how often the effect can be triggered.
This is ignored by most devices. You should only rely on this functionality if a device matches a list of known-working devices.
Implementations§
Source§impl Trigger
impl Trigger
Returns the button that triggers the effect.
If no trigger is assigned, this will be Key::KEY_RESERVED.
Trait Implementations§
impl Copy for Trigger
impl Eq for Trigger
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl Freeze for Trigger
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnwindSafe for Trigger
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