Struct KeyboardReport
#[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§
§impl KeyboardReport
impl KeyboardReport
pub const fn default() -> KeyboardReport
Trait Implementations§
§impl Clone for KeyboardReport
impl Clone for KeyboardReport
§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 more§impl Debug for KeyboardReport
impl Debug for KeyboardReport
§impl PartialEq for KeyboardReport
impl PartialEq for KeyboardReport
§impl Serialize for KeyboardReport
impl Serialize for KeyboardReport
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl SerializedDescriptor for KeyboardReport
impl SerializedDescriptor for KeyboardReport
impl AsInputReport for KeyboardReport
impl Copy for KeyboardReport
impl Eq for KeyboardReport
impl StructuralPartialEq for KeyboardReport
Auto Trait Implementations§
impl Freeze for KeyboardReport
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