pub struct ButtonConfig {
pub debounce: Duration,
pub double_click: Duration,
pub long_press: Duration,
pub mode: Mode,
}
Expand description
Button
configuration.
Fields§
§debounce: Duration
Time the button should be down in order to count it as a press.
double_click: Duration
Time between consecutive presses to count as a press in the same sequence instead of a new sequence.
long_press: Duration
Time the button is held before a long press is detected.
mode: Mode
Button direction.
Implementations§
Source§impl ButtonConfig
impl ButtonConfig
Trait Implementations§
Source§impl Clone for ButtonConfig
impl Clone for ButtonConfig
Source§fn clone(&self) -> ButtonConfig
fn clone(&self) -> ButtonConfig
Returns a copy 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 ButtonConfig
impl Debug for ButtonConfig
Source§impl Default for ButtonConfig
impl Default for ButtonConfig
Source§impl PartialEq for ButtonConfig
impl PartialEq for ButtonConfig
impl Copy for ButtonConfig
impl Eq for ButtonConfig
impl StructuralPartialEq for ButtonConfig
Auto Trait Implementations§
impl Freeze for ButtonConfig
impl RefUnwindSafe for ButtonConfig
impl Send for ButtonConfig
impl Sync for ButtonConfig
impl Unpin for ButtonConfig
impl UnwindSafe for ButtonConfig
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