pub struct ControlOut<'a> {
pub control_type: ControlType,
pub recipient: Recipient,
pub request: u8,
pub value: u16,
pub index: u16,
pub data: &'a [u8],
}Expand description
SETUP packet and associated data to make an OUT 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.
data: &'a [u8]Data to be sent in the data stage.
Trait Implementations§
Source§impl<'a> Clone for ControlOut<'a>
impl<'a> Clone for ControlOut<'a>
Source§fn clone(&self) -> ControlOut<'a>
fn clone(&self) -> ControlOut<'a>
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<'a> Debug for ControlOut<'a>
impl<'a> Debug for ControlOut<'a>
impl<'a> Copy for ControlOut<'a>
Auto Trait Implementations§
impl<'a> Freeze for ControlOut<'a>
impl<'a> RefUnwindSafe for ControlOut<'a>
impl<'a> Send for ControlOut<'a>
impl<'a> Sync for ControlOut<'a>
impl<'a> Unpin for ControlOut<'a>
impl<'a> UnsafeUnpin for ControlOut<'a>
impl<'a> UnwindSafe for ControlOut<'a>
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