Struct MediaKeyboardReport
#[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§
§impl Clone for MediaKeyboardReport
impl Clone for MediaKeyboardReport
§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 more§impl Debug for MediaKeyboardReport
impl Debug for MediaKeyboardReport
§impl PartialEq for MediaKeyboardReport
impl PartialEq for MediaKeyboardReport
§impl Serialize for MediaKeyboardReport
impl Serialize for MediaKeyboardReport
§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 MediaKeyboardReport
impl SerializedDescriptor 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