pub struct ControlIn {
pub control_type: ControlType,
pub recipient: Recipient,
pub request: u8,
pub value: u16,
pub index: u16,
pub length: u16,
}Expand description
SETUP packet to make an IN request on a control endpoint.
Fields§
§control_type: ControlTypeRequest type used for the bmRequestType field sent in the SETUP packet.
recipient: RecipientRecipient used for the bmRequestType field sent in the SETUP packet.
request: u8bRequest field sent in the SETUP packet.
value: u16wValue field sent in the SETUP packet.
index: u16wIndex field sent in the SETUP packet.
For Recipient::Interface this is the interface number. For Recipient::Endpoint this is the endpoint number.
length: u16Number of bytes to be read in the data stage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ControlIn
impl RefUnwindSafe for ControlIn
impl Send for ControlIn
impl Sync for ControlIn
impl Unpin for ControlIn
impl UnsafeUnpin for ControlIn
impl UnwindSafe for ControlIn
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