pub struct ButtonEvent {
pub buttons_pressed: Vec<LedButton>,
}
Expand description
Describes a button event that occurred. At the moment only button press is implemented.
Since the buttons on the trellis can be pressed simultaneouly a list of buttons is supplied. The order in this list is undefined.
Fields§
Implementations§
Source§impl ButtonEvent
impl ButtonEvent
Sourcepub fn empty() -> ButtonEvent
pub fn empty() -> ButtonEvent
Returns a empty event (nothing happend).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ButtonEvent
impl RefUnwindSafe for ButtonEvent
impl Send for ButtonEvent
impl Sync for ButtonEvent
impl Unpin for ButtonEvent
impl UnwindSafe for ButtonEvent
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