#[repr(u8)]pub enum RequestType {
Standard = 0,
Class = 1,
Vendor = 2,
Reserved = 3,
}Expand description
Control request type.
Variants§
Standard = 0
Request is a USB standard request. Usually handled by
UsbDevice.
Class = 1
Request is intended for a USB class.
Vendor = 2
Request is vendor-specific.
Reserved = 3
Reserved.
Trait Implementations§
Source§impl Clone for RequestType
impl Clone for RequestType
impl Copy for RequestType
Source§impl Debug for RequestType
impl Debug for RequestType
impl Eq for RequestType
Source§impl Format for RequestType
impl Format for RequestType
Source§impl PartialEq for RequestType
impl PartialEq for RequestType
impl StructuralPartialEq for RequestType
Auto Trait Implementations§
impl Forget for RequestType
impl Freeze for RequestType
impl Move for RequestType
impl RefUnwindSafe for RequestType
impl Send for RequestType
impl Sync for RequestType
impl Unpin for RequestType
impl UnsafeUnpin 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