pub struct ButtonArgs {
pub serial: u32,
pub time: u32,
pub button: u32,
pub state: ButtonState,
}Fields§
§serial: u32serial number of the button event
time: u32timestamp with millisecond granularity
button that produced the event
state: ButtonStatephysical 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 UnsafeUnpin 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