pub enum Event {
Automation(AutomationEvent),
Callback(CallbackEvent),
CapsWord(CapsWordEvent),
Chorded(ChordedEvent),
Consumer(ConsumerEvent),
Custom(CustomEvent),
Keyboard(KeyboardEvent),
Layered(LayeredEvent),
Mouse(MouseEvent),
Sticky(StickyEvent),
TapDance(TapDanceEvent),
TapHold(TapHoldEvent),
}
Expand description
Sum type aggregating the key::Event types.
Variants§
Automation(AutomationEvent)
An automation event.
Callback(CallbackEvent)
A callback event.
CapsWord(CapsWordEvent)
A caps word event.
Chorded(ChordedEvent)
A chorded event.
Consumer(ConsumerEvent)
A consumer event.
Custom(CustomEvent)
A custom event.
Keyboard(KeyboardEvent)
A keyboard event.
Layered(LayeredEvent)
A layer modification event.
Mouse(MouseEvent)
A mouse event.
Sticky(StickyEvent)
A sticky modifier event.
TapDance(TapDanceEvent)
A tap-dance event.
TapHold(TapHoldEvent)
A tap-hold event.
Trait Implementations§
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: AutomationEvent) -> Self
fn from(ev: AutomationEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: CallbackEvent) -> Self
fn from(ev: CallbackEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: TapHoldEvent) -> Self
fn from(ev: TapHoldEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: CapsWordEvent) -> Self
fn from(ev: CapsWordEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: ChordedEvent) -> Self
fn from(ev: ChordedEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: ConsumerEvent) -> Self
fn from(ev: ConsumerEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: CustomEvent) -> Self
fn from(ev: CustomEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: KeyboardEvent) -> Self
fn from(ev: KeyboardEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: MouseEvent) -> Self
fn from(ev: MouseEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: StickyEvent) -> Self
fn from(ev: StickyEvent) -> Self
Converts to this type from the input type.
Source§impl From<Event> for Event
impl From<Event> for Event
Source§fn from(ev: TapDanceEvent) -> Self
fn from(ev: TapDanceEvent) -> Self
Converts to this type from the input type.
Source§impl From<LayerEvent> for Event
impl From<LayerEvent> for Event
Source§fn from(ev: LayeredEvent) -> Self
fn from(ev: LayeredEvent) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Event> for AutomationEvent
impl TryFrom<Event> for AutomationEvent
Source§impl TryFrom<Event> for CapsWordEvent
impl TryFrom<Event> for CapsWordEvent
Source§impl TryFrom<Event> for ChordedEvent
impl TryFrom<Event> for ChordedEvent
Source§impl TryFrom<Event> for ConsumerEvent
impl TryFrom<Event> for ConsumerEvent
Source§impl TryFrom<Event> for KeyboardEvent
impl TryFrom<Event> for KeyboardEvent
Source§impl TryFrom<Event> for MouseEvent
impl TryFrom<Event> for MouseEvent
Source§impl TryFrom<Event> for StickyEvent
impl TryFrom<Event> for StickyEvent
Source§impl TryFrom<Event> for TapDanceEvent
impl TryFrom<Event> for TapDanceEvent
Source§impl TryFrom<Event> for TapHoldEvent
impl TryFrom<Event> for TapHoldEvent
Source§impl TryFrom<Event> for LayeredEvent
impl TryFrom<Event> for LayeredEvent
impl Copy for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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