Enum usbd_hid::hid_class::HidProtocolMode
source · #[repr(u8)]pub enum HidProtocolMode {
Boot = 0,
Report = 1,
}
Expand description
Get/Set Protocol mapping See (7.2.5 and 7.2.6): https://www.usb.org/sites/default/files/hid1_11.pdf
Variants§
Trait Implementations§
source§impl Clone for HidProtocolMode
impl Clone for HidProtocolMode
source§fn clone(&self) -> HidProtocolMode
fn clone(&self) -> HidProtocolMode
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 HidProtocolMode
impl Debug for HidProtocolMode
source§impl From<u8> for HidProtocolMode
impl From<u8> for HidProtocolMode
source§fn from(mode: u8) -> HidProtocolMode
fn from(mode: u8) -> HidProtocolMode
Converts to this type from the input type.
source§impl PartialEq for HidProtocolMode
impl PartialEq for HidProtocolMode
source§fn eq(&self, other: &HidProtocolMode) -> bool
fn eq(&self, other: &HidProtocolMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HidProtocolMode
impl Eq for HidProtocolMode
impl StructuralEq for HidProtocolMode
impl StructuralPartialEq for HidProtocolMode
Auto Trait Implementations§
impl RefUnwindSafe for HidProtocolMode
impl Send for HidProtocolMode
impl Sync for HidProtocolMode
impl Unpin for HidProtocolMode
impl UnwindSafe for HidProtocolMode
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