pub struct Event {
pub kind: &'static str,
pub event: &'static str,
pub steps: Option<u8>,
pub index: u8,
}Expand description
A button or dimmer event.
Fields§
§kind: &'static strbutton or dimmer.
event: &'static strThe event: press, double_press, rotate_left, … or none.
steps: Option<u8>For a dimmer, the number of steps.
index: u8Which button or dimmer, counting from 1 in the order they appear.
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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