[−][src]Struct keebrs::stateful::StatefulScanner
Stateful keyboard matrix scanner
Implementations
impl<Sc, St, D> StatefulScanner<Sc, St, D> where
Sc: Scan,
St: State<Sc>,
D: FnMut(),
[src]
Sc: Scan,
St: State<Sc>,
D: FnMut(),
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]
scanner: Sc,
debounce: usize,
groups: usize,
delay: D
) -> Self
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]
Sc: Scan + Unpin,
St: State<Sc> + Unpin,
D: FnMut() + Unpin,
Auto Trait Implementations
impl<Sc, St, D> Send for StatefulScanner<Sc, St, D> where
D: Send,
Sc: Send,
St: Send,
D: Send,
Sc: Send,
St: Send,
impl<Sc, St, D> Sync for StatefulScanner<Sc, St, D> where
D: Sync,
Sc: Sync,
St: Sync,
D: Sync,
Sc: Sync,
St: Sync,
impl<Sc, St, D> Unpin for StatefulScanner<Sc, St, D> where
D: Unpin,
Sc: Unpin,
St: Unpin,
D: Unpin,
Sc: Unpin,
St: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<S> ScanStatefulExt for S where
S: ScanStateful + Unpin,
[src]
S: ScanStateful + Unpin,
fn change(&mut self) -> ScanStatefulFut<'_, Self>ⓘNotable traits for ScanStatefulFut<'s, S>
impl<'s, S> Future for ScanStatefulFut<'s, S> where
S: ScanStateful + Unpin, type Output = Option<PhysKey>;
[src]
Notable traits for ScanStatefulFut<'s, S>
impl<'s, S> Future for ScanStatefulFut<'s, S> where
S: ScanStateful + Unpin, type Output = Option<PhysKey>;
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,