Struct usbd_hid::descriptor::MediaKeyboardReport
source · #[repr(C, packed(1))]pub struct MediaKeyboardReport {
pub usage_id: u16,
}
Expand description
MediaKeyboardReport describes a report and descriptor that can be used to send consumer control commands to the host.
This is commonly used for sending media player for keyboards with media player keys, but can be used for all sorts of Consumer Page functionality.
Fields§
§usage_id: u16
Trait Implementations§
source§impl Clone for MediaKeyboardReport
impl Clone for MediaKeyboardReport
source§fn clone(&self) -> MediaKeyboardReport
fn clone(&self) -> MediaKeyboardReport
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 MediaKeyboardReport
impl Debug for MediaKeyboardReport
source§impl PartialEq for MediaKeyboardReport
impl PartialEq for MediaKeyboardReport
source§fn eq(&self, other: &MediaKeyboardReport) -> bool
fn eq(&self, other: &MediaKeyboardReport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MediaKeyboardReport
impl Serialize for MediaKeyboardReport
impl AsInputReport for MediaKeyboardReport
impl Copy for MediaKeyboardReport
impl Eq for MediaKeyboardReport
impl StructuralPartialEq for MediaKeyboardReport
Auto Trait Implementations§
impl Freeze for MediaKeyboardReport
impl RefUnwindSafe for MediaKeyboardReport
impl Send for MediaKeyboardReport
impl Sync for MediaKeyboardReport
impl Unpin for MediaKeyboardReport
impl UnwindSafe for MediaKeyboardReport
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)