Struct usbd_hid::descriptor::KeyboardReport
source · #[repr(C, packed(1))]pub struct KeyboardReport {
pub modifier: u8,
pub reserved: u8,
pub leds: u8,
pub keycodes: [u8; 6],
}
Expand description
KeyboardReport describes a report and its companion descriptor that can be used to send keyboard button presses to a host and receive the status of the keyboard LEDs.
Fields§
§modifier: u8
§reserved: u8
§leds: u8
§keycodes: [u8; 6]
Implementations§
Trait Implementations§
source§impl Clone for KeyboardReport
impl Clone for KeyboardReport
source§fn clone(&self) -> KeyboardReport
fn clone(&self) -> KeyboardReport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyboardReport
impl Debug for KeyboardReport
source§impl Serialize for KeyboardReport
impl Serialize for KeyboardReport
impl AsInputReport for KeyboardReport
impl Copy for KeyboardReport
Auto Trait Implementations§
impl RefUnwindSafe for KeyboardReport
impl Send for KeyboardReport
impl Sync for KeyboardReport
impl Unpin for KeyboardReport
impl UnwindSafe for KeyboardReport
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more