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§
Provided Associated Constants§
Sourceconst BLE_PRODUCT_VERSION: &'static str = Self::HARDWARE_REVISION
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.