[][src]Trait keytokey::handlers::ProcessKeys

pub trait ProcessKeys<T: USBKeyOut> {
    fn process_keys(
        &mut self,
        events: &mut Vec<(Event, EventStatus)>,
        output: &mut T
    ) -> HandlerResult; fn default_enabled(&self) -> bool { ... } }

Handlers are defined by this trait

they process the events, set their status to either Handled or Ignored (if more data is necessary), and send input to the computer via output

Required methods

fn process_keys(
    &mut self,
    events: &mut Vec<(Event, EventStatus)>,
    output: &mut T
) -> HandlerResult

Loading content...

Provided methods

fn default_enabled(&self) -> bool

whether this handler is enabled after add_handlers (true for most, false for Layers)

Loading content...

Implementors

impl<'_, T: USBKeyOut> ProcessKeys<T> for Layer<'_>[src]

impl<'_, T: USBKeyOut, M: Action> ProcessKeys<T> for Sequence<'_, M>[src]

impl<T: USBKeyOut> ProcessKeys<T> for TranslationHelper[src]

impl<T: USBKeyOut> ProcessKeys<T> for AutoShift[src]

impl<T: USBKeyOut> ProcessKeys<T> for RewriteLayer[src]

impl<T: USBKeyOut> ProcessKeys<T> for USBKeyboard[src]

impl<T: USBKeyOut> ProcessKeys<T> for UnicodeKeyboard[src]

impl<T: USBKeyOut> ProcessKeys<T> for CopyPaste[src]

impl<T: USBKeyOut> ProcessKeys<T> for TimeoutLogger[src]

impl<T: USBKeyOut, F: FnMut(String)> ProcessKeys<T> for DebugStream<F>[src]

impl<T: USBKeyOut, M1: Action, M2: Action> ProcessKeys<T> for LongTap<M1, M2>[src]

impl<T: USBKeyOut, M1: OnOff, M2: Action, M3: Action> ProcessKeys<T> for OneShot<M1, M2, M3>[src]

impl<T: USBKeyOut, M: Action> ProcessKeys<T> for PressMacro<M>[src]

impl<T: USBKeyOut, M: OnOff> ProcessKeys<T> for PressReleaseMacro<M>[src]

impl<T: USBKeyOut, M: OnOff> ProcessKeys<T> for StickyMacro<M>[src]

impl<T: USBKeyOut, M: TapDanceAction> ProcessKeys<T> for TapDance<M>[src]

impl<T: USBKeyOut, MAction: Action, MOnOff: OnOff> ProcessKeys<T> for SpaceCadet<MAction, MOnOff>[src]

Loading content...