[][src]Trait keytokey::handlers::Action

pub trait Action: Send + Sync {
    fn on_trigger(&mut self, output: &mut dyn USBKeyOut);
}

A callback used when one single action is needed

examples: Leader invocations.

Notably implemented on &str, so you can just pass in a &str to be send to the host computer.

Required methods

fn on_trigger(&mut self, output: &mut dyn USBKeyOut)

Loading content...

Implementations on Foreign Types

impl Action for Vec<KeyCode>[src]

Register multiple key codes as OnOff action

Loading content...

Implementors

impl Action for KeyCode[src]

Register a key as an Action

that means the current modifiers are sent as well by USBKeyboard

impl Action for ActionAbort[src]

impl Action for ActionNone[src]

impl Action for ActionToggleHandler[src]

impl<'_> Action for &'_ str[src]

send a string as an Action

Loading content...