pub struct EncoderAction {
pub clockwise: KeyAction,
pub counter_clockwise: KeyAction,
}Expand description
Action for a rotary encoder position, stored in the encoder map.
Both fields default to KeyAction::No (no action).
Fields§
§clockwise: KeyActionAction triggered when the encoder is rotated clockwise.
counter_clockwise: KeyActionAction triggered when the encoder is rotated counter-clockwise.
Implementations§
Trait Implementations§
Source§impl Clone for EncoderAction
impl Clone for EncoderAction
Source§fn clone(&self) -> EncoderAction
fn clone(&self) -> EncoderAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncoderAction
Source§impl Debug for EncoderAction
impl Debug for EncoderAction
Source§impl Default for EncoderAction
impl Default for EncoderAction
Source§impl<'de> Deserialize<'de> for EncoderAction
impl<'de> Deserialize<'de> for EncoderAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EncoderAction
Source§impl MaxSize for EncoderAction
impl MaxSize for EncoderAction
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
Source§impl PartialEq for EncoderAction
impl PartialEq for EncoderAction
Source§impl Serialize for EncoderAction
impl Serialize for EncoderAction
impl StructuralPartialEq for EncoderAction
Auto Trait Implementations§
impl Freeze for EncoderAction
impl RefUnwindSafe for EncoderAction
impl Send for EncoderAction
impl Sync for EncoderAction
impl Unpin for EncoderAction
impl UnsafeUnpin for EncoderAction
impl UnwindSafe for EncoderAction
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