#[repr(C)]pub struct DescriptorType(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl DescriptorType
impl DescriptorType
pub const DEVICE: Self
pub const CONFIGURATION: Self
pub const STRING: Self
pub const INTERFACE: Self
pub const ENDPOINT: Self
pub const INTERFACE_POWER: Self
pub const OTG: Self
pub const DEBUG: Self
pub const INTERFACE_ASSOCIATION: Self
pub const BOS: Self
pub const DEVICE_CAPABILITY: Self
pub const SUPERSPEED_USB_ENDPOINT_COMPANION: Self
pub const SUPERSPEEDPLUS_ISOCHRONOUS_ENDPOINT_COMPANION: Self
Trait Implementations§
Source§impl Clone for DescriptorType
impl Clone for DescriptorType
Source§fn clone(&self) -> DescriptorType
fn clone(&self) -> DescriptorType
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 Debug for DescriptorType
impl Debug for DescriptorType
Source§impl From<DescriptorType> for u8
impl From<DescriptorType> for u8
Source§fn from(desc_type: DescriptorType) -> Self
fn from(desc_type: DescriptorType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DescriptorType
impl RefUnwindSafe for DescriptorType
impl Send for DescriptorType
impl Sync for DescriptorType
impl Unpin for DescriptorType
impl UnwindSafe for DescriptorType
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