Struct hid_io_core::module::vhid::uhid::KeyboardNkro[][src]

pub struct KeyboardNkro { /* fields omitted */ }

uhid NKRO Keyboard To create multiple unique devices, make sure to set uniq to a unique value so to differentiate betweent devices

Implementations

impl KeyboardNkro[src]

pub fn new(
    mailbox: Mailbox,
    name: String,
    phys: String,
    uniq: String,
    bus: Bus,
    vendor: u32,
    product: u32,
    version: u32,
    country: u32
) -> Result<KeyboardNkro>
[src]

pub fn send(&mut self, keyboard_hid_codes: Vec<u8>) -> Result<(), Error>[src]

Sends a keyboard HID message This command does not maintain any state from any previously sent commands

pub fn process(&mut self) -> Result<(), Error>[src]

Process a single event This command will block, so make sure to call it in a separate thread

Trait Implementations

impl Drop for KeyboardNkro[src]

Auto Trait Implementations

impl !RefUnwindSafe for KeyboardNkro

impl Send for KeyboardNkro

impl Sync for KeyboardNkro

impl Unpin for KeyboardNkro

impl !UnwindSafe for KeyboardNkro

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[src]

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]