pub struct ButtonEngine { /* private fields */ }Expand description
Complete physical-to-gesture recognition pipeline.
Implementations§
Source§impl ButtonEngine
impl ButtonEngine
pub fn new(config: FrameworkConfig) -> Result<Self, ConfigError>
Sourcepub fn update(
&mut self,
snapshot: ButtonSnapshot<'_>,
) -> Result<EventBatch, UpdateError>
pub fn update( &mut self, snapshot: ButtonSnapshot<'_>, ) -> Result<EventBatch, UpdateError>
Process one atomic, complete GPIO snapshot.
Sourcepub fn advance_to(&mut self, now: Timestamp) -> Result<EventBatch, UpdateError>
pub fn advance_to(&mut self, now: Timestamp) -> Result<EventBatch, UpdateError>
Advance chord and gesture deadlines without claiming a new GPIO sample.
pub fn config(&self) -> &FrameworkConfig
pub fn next_wakeup(&self) -> Option<Timestamp>
Trait Implementations§
Source§impl Clone for ButtonEngine
impl Clone for ButtonEngine
Source§fn clone(&self) -> ButtonEngine
fn clone(&self) -> ButtonEngine
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 moreAuto Trait Implementations§
impl Freeze for ButtonEngine
impl RefUnwindSafe for ButtonEngine
impl Send for ButtonEngine
impl Sync for ButtonEngine
impl Unpin for ButtonEngine
impl UnsafeUnpin for ButtonEngine
impl UnwindSafe for ButtonEngine
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