rumcake
rumcake::bluetooth

Trait BluetoothKeyboard

Source
pub trait BluetoothKeyboard: Keyboard + HIDDevice {
    const BLE_VID: u16;
    const BLE_PID: u16;
    const BLE_PRODUCT_VERSION: &'static str = Self::HARDWARE_REVISION;
}
Expand description

A trait that keyboards must implement to communicate with host devices over Bluetooth (LE).

Required Associated Constants§

Source

const BLE_VID: u16

Vendor ID for the keyboard.

Source

const BLE_PID: u16

Product ID for the keyboard.

Provided Associated Constants§

Source

const BLE_PRODUCT_VERSION: &'static str = Self::HARDWARE_REVISION

Product version for the keyboard.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§