pub struct ButtonMatrixEvent<NAME> {
pub name: NAME,
pub row: usize,
pub column: usize,
pub kind: ButtonEventKind,
pub held_ms: Option<Millis>,
}Expand description
One key event produced by a matrix scan.
Fields§
§name: NAMEUser-provided key name.
row: usizeRow index in the matrix.
column: usizeColumn index in the matrix.
kind: ButtonEventKindTransition kind.
held_ms: Option<Millis>Hold time for this event.
For ButtonEventKind::Pressed this is Some(0). For
ButtonEventKind::Released this is the debounced time between the
press event and the release event.
Trait Implementations§
Source§impl<NAME: Clone> Clone for ButtonMatrixEvent<NAME>
impl<NAME: Clone> Clone for ButtonMatrixEvent<NAME>
impl<NAME: Copy> Copy for ButtonMatrixEvent<NAME>
Source§impl<NAME: Debug> Debug for ButtonMatrixEvent<NAME>
impl<NAME: Debug> Debug for ButtonMatrixEvent<NAME>
impl<NAME: Eq> Eq for ButtonMatrixEvent<NAME>
Source§impl<NAME: PartialEq> PartialEq for ButtonMatrixEvent<NAME>
impl<NAME: PartialEq> PartialEq for ButtonMatrixEvent<NAME>
impl<NAME: PartialEq> StructuralPartialEq for ButtonMatrixEvent<NAME>
Auto Trait Implementations§
impl<NAME> Forget for ButtonMatrixEvent<NAME>
impl<NAME> Freeze for ButtonMatrixEvent<NAME>where
NAME: Freeze,
impl<NAME> Move for ButtonMatrixEvent<NAME>
impl<NAME> RefUnwindSafe for ButtonMatrixEvent<NAME>where
NAME: RefUnwindSafe,
impl<NAME> Send for ButtonMatrixEvent<NAME>where
NAME: Send,
impl<NAME> Sync for ButtonMatrixEvent<NAME>where
NAME: Sync,
impl<NAME> Unpin for ButtonMatrixEvent<NAME>where
NAME: Unpin,
impl<NAME> UnsafeUnpin for ButtonMatrixEvent<NAME>where
NAME: UnsafeUnpin,
impl<NAME> UnwindSafe for ButtonMatrixEvent<NAME>where
NAME: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more