pub struct ButtonArgs {
pub serial: u32,
pub time: u32,
pub button: u32,
pub state: ButtonState,
}
Fields§
§serial: u32
serial number of the button event
time: u32
timestamp with millisecond granularity
button that produced the event
state: ButtonState
physical state of the button
Trait Implementations§
Source§impl Clone for ButtonArgs
impl Clone for ButtonArgs
Source§fn clone(&self) -> ButtonArgs
fn clone(&self) -> ButtonArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ButtonArgs
impl Debug for ButtonArgs
impl Copy for ButtonArgs
Auto Trait Implementations§
impl Freeze for ButtonArgs
impl RefUnwindSafe for ButtonArgs
impl Send for ButtonArgs
impl Sync for ButtonArgs
impl Unpin for ButtonArgs
impl UnwindSafe for ButtonArgs
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