[][src]Struct keytokey::handlers::PressReleaseMacro

pub struct PressReleaseMacro<M> { /* fields omitted */ }

A simple callback - call on_press(output: impl USBKeyOut) on key press and on_release(output) on release)) trigger may be any keycode, but consider using the constants in UserKey::* which is not used by either UnicodeKeyboard or UsbKeyboard

Implementations

impl<M: OnOff> PressReleaseMacro<M>[src]

pub fn new(trigger: impl AcceptsKeycode, callbacks: M) -> PressReleaseMacro<M>[src]

Trait Implementations

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

Auto Trait Implementations

impl<M> Send for PressReleaseMacro<M> where
    M: Send

impl<M> Sync for PressReleaseMacro<M> where
    M: Sync

impl<M> Unpin for PressReleaseMacro<M> where
    M: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.