pub enum UsbRequestType {
Standard,
Class,
Vendor,
}
Expand description
The type of USB control request.
Variantsยง
Standard
A standard request defined by the USB specification.
Class
A class-specific request.
Vendor
A vendor-specific request.
Trait Implementationsยง
Sourceยงimpl Clone for UsbRequestType
impl Clone for UsbRequestType
Sourceยงfn clone(&self) -> UsbRequestType
fn clone(&self) -> UsbRequestType
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for UsbRequestType
impl Debug for UsbRequestType
Sourceยงimpl From<UsbRequestType> for UsbRequestType
impl From<UsbRequestType> for UsbRequestType
Sourceยงfn from(req_type: UsbRequestType) -> Self
fn from(req_type: UsbRequestType) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for UsbRequestType
impl Hash for UsbRequestType
Sourceยงimpl Ord for UsbRequestType
impl Ord for UsbRequestType
Sourceยงfn cmp(&self, other: &UsbRequestType) -> Ordering
fn cmp(&self, other: &UsbRequestType) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for UsbRequestType
impl PartialEq for UsbRequestType
Sourceยงimpl PartialOrd for UsbRequestType
impl PartialOrd for UsbRequestType
impl Copy for UsbRequestType
impl Eq for UsbRequestType
impl StructuralPartialEq for UsbRequestType
Auto Trait Implementationsยง
impl Freeze for UsbRequestType
impl RefUnwindSafe for UsbRequestType
impl Send for UsbRequestType
impl Sync for UsbRequestType
impl Unpin for UsbRequestType
impl UnwindSafe for UsbRequestType
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