Enum usb2::StandardRequest [−][src]
Standard device requests
See section 9.4 of (USB2)
Variants
ClearFeature(ClearFeature)
CLEAR_FEATURE
GET_CONFIGURATION
GET_DESCRIPTOR
Fields of GetDescriptor
GET_INTERFACE – returns the alternate setting of the specified interface
GetStatus(GetStatus)
GET_STATUS
SET_ADDRESS
Fields of SetAddress
SET_CONFIGURATION
Fields of SetConfiguration
SET_DESCRIPTOR
Fields of SetDescriptor
SetFeature(SetFeature)
SET_FEATURE
SET_INTERFACE – changes the alternate setting of the specified interface
SYNCH_FRAME
Fields of SynchFrame
endpoint: Endpoint
The endpoint this synchronization frame is for
Implementations
impl StandardRequest
[src]
pub fn parse(
bmrequesttype: u8,
brequest: u8,
wvalue: u16,
windex: u16,
wlength: u16
) -> Result<Self, ()>
[src]
bmrequesttype: u8,
brequest: u8,
wvalue: u16,
windex: u16,
wlength: u16
) -> Result<Self, ()>
Parses a standard request
Trait Implementations
impl Clone for StandardRequest
[src]
fn clone(&self) -> StandardRequest
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StandardRequest
[src]
impl Debug for StandardRequest
[src]
impl PartialEq<StandardRequest> for StandardRequest
[src]
fn eq(&self, other: &StandardRequest) -> bool
[src]
fn ne(&self, other: &StandardRequest) -> bool
[src]
impl StructuralPartialEq for StandardRequest
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,