#[repr(u8)]pub enum ControlType {
Standard = 0,
Class = 1,
Vendor = 2,
Reserved = 3,
}Expand description
Type of a USB control request.
This is the 2-bit Type sub-field of bmRequestType
(USB 2.0 spec Table 9-2, bits 6..5). The discriminant of each variant
matches the on-wire value.
Variants§
Standard = 0
A standard USB request (USB 2.0 spec §9.4).
Class = 1
A class-specific request.
Vendor = 2
A vendor-specific request.
Reserved = 3
Reserved.
Trait Implementations§
Source§impl Clone for ControlType
impl Clone for ControlType
Source§fn clone(&self) -> ControlType
fn clone(&self) -> ControlType
Returns a duplicate 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 ControlType
impl Debug for ControlType
Source§impl Format for ControlType
impl Format for ControlType
Source§impl PartialEq for ControlType
impl PartialEq for ControlType
impl Copy for ControlType
impl Eq for ControlType
impl StructuralPartialEq for ControlType
Auto Trait Implementations§
impl Freeze for ControlType
impl RefUnwindSafe for ControlType
impl Send for ControlType
impl Sync for ControlType
impl Unpin for ControlType
impl UnwindSafe for ControlType
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