pub struct InterruptConfig {
pub pressed: bool,
pub clicked: bool,
}
Expand description
The button can raise interrupts when pressed and clicked.
Fields§
§pressed: bool
The button raises an interrupt when pressed.
clicked: bool
The button raises an interrupt when clicked (pressed and released).
Trait Implementations§
Source§impl Debug for InterruptConfig
impl Debug for InterruptConfig
Source§impl From<InterruptConfig> for u8
impl From<InterruptConfig> for u8
Source§fn from(val: InterruptConfig) -> u8
fn from(val: InterruptConfig) -> u8
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InterruptConfig
impl RefUnwindSafe for InterruptConfig
impl Send for InterruptConfig
impl Sync for InterruptConfig
impl Unpin for InterruptConfig
impl UnwindSafe for InterruptConfig
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