[][src]Struct keebrs::stateful::StatefulScanner

pub struct StatefulScanner<Sc, St, D> { /* fields omitted */ }

Stateful keyboard matrix scanner

Implementations

impl<Sc, St, D> StatefulScanner<Sc, St, D> where
    Sc: Scan,
    St: State<Sc>,
    D: FnMut(), 
[src]

pub fn new(scanner: Sc, debounce: usize, delay: D) -> Self[src]

Create a new StatefulScanner

Currently only supports "quick" debouncing with the given threshold.

pub fn with_groups(
    scanner: Sc,
    debounce: usize,
    groups: usize,
    delay: D
) -> Self
[src]

Create a new StatefulScanner

groups > 1 will cause the scanner to divide scanning into a number of line groups and will yield between groups. This will allow other tasks to run without having to wait for a full scan.

Trait Implementations

impl<Sc, St, D> ScanStateful for StatefulScanner<Sc, St, D> where
    Sc: Scan + Unpin,
    St: State<Sc> + Unpin,
    D: FnMut() + Unpin
[src]

Auto Trait Implementations

impl<Sc, St, D> Send for StatefulScanner<Sc, St, D> where
    D: Send,
    Sc: Send,
    St: Send

impl<Sc, St, D> Sync for StatefulScanner<Sc, St, D> where
    D: Sync,
    Sc: Sync,
    St: Sync

impl<Sc, St, D> Unpin for StatefulScanner<Sc, St, D> where
    D: Unpin,
    Sc: Unpin,
    St: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<S> ScanStatefulExt for S where
    S: ScanStateful + Unpin
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.