[][src]Trait keytokey::handlers::OnOff

pub trait OnOff {
    fn on_activate(&mut self, output: &mut dyn USBKeyOut);
fn on_deactivate(&mut self, output: &mut dyn USBKeyOut); }

A trait for callbacks when an on/off action is needed

Used by PressReleaseMacros, StickyMacros, OneShots see PressReleaseMacro, StickyMacro

Required methods

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

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

Loading content...

Implementations on Foreign Types

impl OnOff for Arc<RwLock<PressCounter>>[src]

Loading content...

Implementors

impl OnOff for ActionAbort[src]

impl OnOff for ActionHandler[src]

impl OnOff for ActionToggleHandler[src]

impl OnOff for InverseActionHandler[src]

impl OnOff for PressCounter[src]

Loading content...