pub enum ButtonState {
    Down,
    Press,
    Pressing,
    LongPress,
    Idle,
}Variants§
Down
Triggered immediately when a button was pressed down
Press
Triggered after a button was pressed down and came up again
Pressing
Triggered when button is pressed down and held down for a defined time
LongPress
Triggered when button is pressed down and held down for a longer time
Idle
When button is depressed ;)
Trait Implementations§
Source§impl Clone for ButtonState
 
impl Clone for ButtonState
Source§fn clone(&self) -> ButtonState
 
fn clone(&self) -> ButtonState
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 moreimpl Copy for ButtonState
Auto Trait Implementations§
impl Freeze for ButtonState
impl RefUnwindSafe for ButtonState
impl Send for ButtonState
impl Sync for ButtonState
impl Unpin for ButtonState
impl UnwindSafe for ButtonState
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