Skip to main content

InputDev

Trait InputDev 

Source
pub trait InputDev: Dev {
    const IN_LEN: u8;

    // Required methods
    fn poll(&mut self) -> bool;
    fn input(&self) -> &[u8] ;
}
Expand description

HID that generates input reports.

Required Associated Constants§

Source

const IN_LEN: u8

Length of the slice returned by Self::input().

Required Methods§

Source

fn poll(&mut self) -> bool

Polls for the next input report and returns true if a new report is available.

Source

fn input(&self) -> &[u8]

Returns the current input report.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§