#[repr(C, packed(1))]pub struct IOUSBConfigurationDescriptor {
pub bLength: u8,
pub bDescriptorType: u8,
pub wTotalLength: u16,
pub bNumInterfaces: u8,
pub bConfigurationValue: u8,
pub iConfiguration: u8,
pub bmAttributes: u8,
pub MaxPower: u8,
}Available on crate feature
AppleUSBDefinitions only.Expand description
Standard USB Configuration Descriptor. It is variable length, so this only specifies the known fields. We use the wTotalLength field to read the whole descriptor. See the USB Specification at http://www.usb.org . USB 2.0 9.6.3: Configuration
See also Apple’s documentation
Fields§
§bLength: u8§bDescriptorType: u8§wTotalLength: u16§bNumInterfaces: u8§bConfigurationValue: u8§iConfiguration: u8§bmAttributes: u8§MaxPower: u8Trait Implementations§
Source§impl Clone for IOUSBConfigurationDescriptor
Available on crate feature usb only.
impl Clone for IOUSBConfigurationDescriptor
Available on crate feature
usb only.Source§fn clone(&self) -> IOUSBConfigurationDescriptor
fn clone(&self) -> IOUSBConfigurationDescriptor
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 IOUSBConfigurationDescriptor
Available on crate feature usb only.
impl Debug for IOUSBConfigurationDescriptor
Available on crate feature
usb only.Source§impl Encode for IOUSBConfigurationDescriptor
Available on crate features usb and objc2 only.
impl Encode for IOUSBConfigurationDescriptor
Available on crate features
usb and objc2 only.Source§impl PartialEq for IOUSBConfigurationDescriptor
Available on crate feature usb only.
impl PartialEq for IOUSBConfigurationDescriptor
Available on crate feature
usb only.Source§fn eq(&self, other: &IOUSBConfigurationDescriptor) -> bool
fn eq(&self, other: &IOUSBConfigurationDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefEncode for IOUSBConfigurationDescriptor
Available on crate features usb and objc2 only.
impl RefEncode for IOUSBConfigurationDescriptor
Available on crate features
usb and objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for IOUSBConfigurationDescriptor
Available on crate feature
usb only.impl StructuralPartialEq for IOUSBConfigurationDescriptor
Available on crate feature
usb only.Auto Trait Implementations§
impl Freeze for IOUSBConfigurationDescriptor
impl RefUnwindSafe for IOUSBConfigurationDescriptor
impl Send for IOUSBConfigurationDescriptor
impl Sync for IOUSBConfigurationDescriptor
impl Unpin for IOUSBConfigurationDescriptor
impl UnwindSafe for IOUSBConfigurationDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.