pub struct ButtonConfig {
pub id: KeyId,
pub active_level: ActiveLevel,
pub debounce: DebounceConfig,
pub initially_pressed: bool,
}Fields§
§id: KeyId§active_level: ActiveLevel§debounce: DebounceConfig§initially_pressed: boolLogical state assumed before the first sample is processed.
Implementations§
Source§impl ButtonConfig
impl ButtonConfig
pub fn active_low(id: KeyId, debounce: Duration) -> Self
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
impl Eq for ButtonConfig
Source§impl PartialEq for ButtonConfig
impl PartialEq 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