pub struct Control {
pub control_type: ControlType,
pub recipient: Recipient,
pub request: u8,
pub value: u16,
pub index: u16,
}
Expand description
SETUP packet without direction or buffers
Fields§
§control_type: ControlType
Request type used for the bmRequestType
field sent in the SETUP packet.
recipient: Recipient
Recipient used for the bmRequestType
field sent in the SETUP packet.
request: u8
bRequest
field sent in the SETUP packet.
value: u16
wValue
field sent in the SETUP packet.
index: u16
wIndex
field sent in the SETUP packet.
For Recipient::Interface
this is the interface number. For Recipient::Endpoint
this is the endpoint number.
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
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