pub enum UsbRecipient {
Device,
Interface,
Endpoint,
Other,
}
Expand description
The recipient of a USB control transfer.
Variantsยง
Device
The request is intended for the USB device as a whole.
Interface
The request is intended for a specific interface on the USB device.
Endpoint
The request is intended for a specific endpoint on the USB device.
Other
The request is intended for some other recipient.
Trait Implementationsยง
Sourceยงimpl Clone for UsbRecipient
impl Clone for UsbRecipient
Sourceยงfn clone(&self) -> UsbRecipient
fn clone(&self) -> UsbRecipient
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for UsbRecipient
impl Debug for UsbRecipient
Sourceยงimpl From<UsbRecipient> for UsbRecipient
impl From<UsbRecipient> for UsbRecipient
Sourceยงfn from(recipient: UsbRecipient) -> Self
fn from(recipient: UsbRecipient) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for UsbRecipient
impl Hash for UsbRecipient
Sourceยงimpl Ord for UsbRecipient
impl Ord for UsbRecipient
Sourceยงfn cmp(&self, other: &UsbRecipient) -> Ordering
fn cmp(&self, other: &UsbRecipient) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for UsbRecipient
impl PartialEq for UsbRecipient
Sourceยงimpl PartialOrd for UsbRecipient
impl PartialOrd for UsbRecipient
impl Copy for UsbRecipient
impl Eq for UsbRecipient
impl StructuralPartialEq for UsbRecipient
Auto Trait Implementationsยง
impl Freeze for UsbRecipient
impl RefUnwindSafe for UsbRecipient
impl Send for UsbRecipient
impl Sync for UsbRecipient
impl Unpin for UsbRecipient
impl UnwindSafe for UsbRecipient
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