[−][src]Struct keytokey::handlers::PressReleaseMacro
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]
fn process_keys(
&mut self,
events: &mut Vec<(Event, EventStatus)>,
output: &mut T
) -> HandlerResult
[src]
&mut self,
events: &mut Vec<(Event, EventStatus)>,
output: &mut T
) -> HandlerResult
fn default_enabled(&self) -> bool
[src]
Auto Trait Implementations
impl<M> Send for PressReleaseMacro<M> where
M: Send,
M: Send,
impl<M> Sync for PressReleaseMacro<M> where
M: Sync,
M: Sync,
impl<M> Unpin for PressReleaseMacro<M> where
M: Unpin,
M: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,