Enum usb_device::control::RequestType
source · [−]#[repr(u8)]
pub enum RequestType {
Standard,
Class,
Vendor,
Reserved,
}
Expand description
Control request type.
Variants
Standard
Request is a USB standard request. Usually handled by
UsbDevice
.
Class
Request is intended for a USB class.
Vendor
Request is vendor-specific.
Reserved
Reserved.
Trait Implementations
sourceimpl Clone for RequestType
impl Clone for RequestType
sourcefn clone(&self) -> RequestType
fn clone(&self) -> RequestType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RequestType
impl Debug for RequestType
sourceimpl PartialEq<RequestType> for RequestType
impl PartialEq<RequestType> for RequestType
sourcefn eq(&self, other: &RequestType) -> bool
fn eq(&self, other: &RequestType) -> bool
impl Copy for RequestType
impl Eq for RequestType
impl StructuralEq for RequestType
impl StructuralPartialEq for RequestType
Auto Trait Implementations
impl RefUnwindSafe for RequestType
impl Send for RequestType
impl Sync for RequestType
impl Unpin for RequestType
impl UnwindSafe for RequestType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more