#[repr(u8)]pub enum Recipient {
Device = 0,
Interface = 1,
Endpoint = 2,
Other = 3,
Reserved = 4,
}Expand description
Recipient of a USB control request.
This is the 5-bit Recipient sub-field of bmRequestType
(USB 2.0 spec Table 9-2, bits 4..0). The discriminant of each variant
matches the on-wire value.
Variants§
Device = 0
The request is intended for the entire device.
Interface = 1
The request is intended for an interface.
Endpoint = 2
The request is intended for an endpoint.
Other = 3
The recipient of the request is unspecified.
Reserved = 4
Any reserved recipient value (4..=31).
Trait Implementations§
impl Copy for Recipient
impl Eq for Recipient
impl StructuralPartialEq for Recipient
Auto Trait Implementations§
impl Freeze for Recipient
impl RefUnwindSafe for Recipient
impl Send for Recipient
impl Sync for Recipient
impl Unpin for Recipient
impl UnwindSafe for Recipient
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