pub enum AjazzInput {
NoData,
ButtonStateChange(Vec<bool>),
EncoderStateChange(Vec<bool>),
EncoderTwist(Vec<i8>),
}Expand description
Type of input that the device produced
Variants§
NoData
No data was passed from the device
ButtonStateChange(Vec<bool>)
Button was pressed
EncoderStateChange(Vec<bool>)
Encoder/Knob was pressed
EncoderTwist(Vec<i8>)
Encoder/Knob was twisted/turned
Implementations§
Trait Implementations§
Source§impl Clone for AjazzInput
impl Clone for AjazzInput
Source§fn clone(&self) -> AjazzInput
fn clone(&self) -> AjazzInput
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 moreAuto Trait Implementations§
impl Freeze for AjazzInput
impl RefUnwindSafe for AjazzInput
impl Send for AjazzInput
impl Sync for AjazzInput
impl Unpin for AjazzInput
impl UnwindSafe for AjazzInput
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