#[repr(u8)]pub enum RequestType {
Standard = 0,
Class = 32,
Vendor = 64,
Reserved = 96,
}
Expand description
Types of control transfers.
Variants§
Standard = 0
Requests that are defined by the USB standard.
Class = 32
Requests that are defined by a device class, e.g., HID.
Vendor = 64
Vendor-specific requests.
Reserved = 96
Reserved for future use.
Trait Implementations§
Source§impl Clone for RequestType
impl Clone for RequestType
Source§fn clone(&self) -> RequestType
fn clone(&self) -> RequestType
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 RequestType
impl Debug for RequestType
Source§impl Hash for RequestType
impl Hash for RequestType
Source§impl PartialEq for RequestType
impl PartialEq for RequestType
impl Copy for RequestType
impl Eq for RequestType
impl StructuralPartialEq for RequestType
Auto Trait Implementations§
impl Freeze for RequestType
impl RefUnwindSafe for RequestType
impl Send for RequestType
impl Sync for RequestType
impl Unpin for RequestType
impl UnwindSafe for RequestType
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