Enum HidProtocol
#[repr(u8)]pub enum HidProtocol {
Generic = 0,
Keyboard = 1,
Mouse = 2,
}
Expand description
Defines fixed packet format Only used if HidSubClass::Boot(1) is set See (4.3): https://www.usb.org/sites/default/files/hid1_11.pdf
Variants§
Trait Implementations§
§impl Clone for HidProtocol
impl Clone for HidProtocol
§fn clone(&self) -> HidProtocol
fn clone(&self) -> HidProtocol
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 HidProtocol
impl Debug for HidProtocol
§impl Format for HidProtocol
impl Format for HidProtocol
§impl PartialEq for HidProtocol
impl PartialEq for HidProtocol
impl Copy for HidProtocol
impl Eq for HidProtocol
impl StructuralPartialEq for HidProtocol
Auto Trait Implementations§
impl Freeze for HidProtocol
impl RefUnwindSafe for HidProtocol
impl Send for HidProtocol
impl Sync for HidProtocol
impl Unpin for HidProtocol
impl UnwindSafe for HidProtocol
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