pub struct ButtonConfig {
pub label: Label,
pub color: LedConfig,
pub mode: ButtonMode,
pub on_press: Vec<Action, MAX_ACTIONS>,
pub on_release: Vec<Action, MAX_ACTIONS>,
pub on_long_press: Vec<Action, MAX_ACTIONS>,
pub cycle_values: Vec<u8, MAX_CYCLE_VALUES>,
pub listen_cc: Option<ListenCc>,
}Fields§
§label: Label§color: LedConfig§mode: ButtonMode§on_press: Vec<Action, MAX_ACTIONS>§on_release: Vec<Action, MAX_ACTIONS>§on_long_press: Vec<Action, MAX_ACTIONS>§cycle_values: Vec<u8, MAX_CYCLE_VALUES>§listen_cc: Option<ListenCc>Reactive LED: ring shows heatmap proportional to incoming CC value.
Trait Implementations§
Source§impl Clone for ButtonConfig
impl Clone for ButtonConfig
Source§fn clone(&self) -> ButtonConfig
fn clone(&self) -> ButtonConfig
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 moreSource§impl Debug for ButtonConfig
impl Debug for ButtonConfig
Source§impl<'de> Deserialize<'de> for ButtonConfig
impl<'de> Deserialize<'de> for ButtonConfig
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 ButtonConfig
Source§impl PartialEq for ButtonConfig
impl PartialEq for ButtonConfig
Source§fn eq(&self, other: &ButtonConfig) -> bool
fn eq(&self, other: &ButtonConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ButtonConfig
impl Serialize 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 UnsafeUnpin 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