pub enum StandardRequest {
ClearFeature(ClearFeature),
GetConfiguration,
GetDescriptor {
descriptor: GetDescriptor,
length: u16,
},
GetInterface {
interface: u8,
},
GetStatus(GetStatus),
SetAddress {
address: Option<Address>,
},
SetConfiguration {
value: Option<NonZeroU8>,
},
SetDescriptor {
descriptor: SetDescriptor,
length: u16,
},
SetFeature(SetFeature),
SetInterface {
interface: u8,
alternate: u8,
},
SynchFrame {
endpoint: Endpoint,
},
}
Expand description
Standard device requests
See section 9.4 of (USB2)
Variants§
ClearFeature(ClearFeature)
CLEAR_FEATURE
GetConfiguration
GET_CONFIGURATION
GetDescriptor
GET_DESCRIPTOR
GetInterface
GET_INTERFACE – returns the alternate setting of the specified interface
GetStatus(GetStatus)
GET_STATUS
SetAddress
SET_ADDRESS
SetConfiguration
SET_CONFIGURATION
SetDescriptor
SET_DESCRIPTOR
Fields
§
descriptor: SetDescriptor
The descriptor to set or change
SetFeature(SetFeature)
SET_FEATURE
SetInterface
SET_INTERFACE – changes the alternate setting of the specified interface
SynchFrame
SYNCH_FRAME
Implementations§
Trait Implementations§
Source§impl Clone for StandardRequest
impl Clone for StandardRequest
Source§fn clone(&self) -> StandardRequest
fn clone(&self) -> StandardRequest
Returns a duplicate 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 StandardRequest
impl Debug for StandardRequest
Source§impl PartialEq for StandardRequest
impl PartialEq for StandardRequest
impl Copy for StandardRequest
impl StructuralPartialEq for StandardRequest
Auto Trait Implementations§
impl Freeze for StandardRequest
impl RefUnwindSafe for StandardRequest
impl Send for StandardRequest
impl Sync for StandardRequest
impl Unpin for StandardRequest
impl UnwindSafe for StandardRequest
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