#[repr(C)]pub struct IOUSBHostIOSourceDescriptors {
pub bcdUSB: u16,
pub descriptor: IOUSBEndpointDescriptor,
pub ssCompanionDescriptor: IOUSBSuperSpeedEndpointCompanionDescriptor,
pub sspCompanionDescriptor: IOUSBSuperSpeedPlusIsochronousEndpointCompanionDescriptor,
}Available on crate features
IOUSBHostIOSource and objc2-io-kit only.Expand description
Encapsulates descriptors for a single endpoint
The IOUSBHostIOSourceDescriptors struct is used to initialize and adjust pipes in the system. The bcdUSB member must be initialized to the USB revision supported by the device. Acceptable values are 0x0110, 0x0200, 0x0300, 0x0310. The descriptor member must always be initialized with a valid endpoint descriptor. The ssCompanionDescriptor and sspCompanionDescriptor members may be required for bcdUSB versions 0x0300 and greater, depending on device operating speed and values set in the descriptors. See USB 3.1 § 9.5 for more information on when these descriptors may be required.
See also Apple’s documentation
Fields§
§bcdUSB: u16§descriptor: IOUSBEndpointDescriptor§ssCompanionDescriptor: IOUSBSuperSpeedEndpointCompanionDescriptor§sspCompanionDescriptor: IOUSBSuperSpeedPlusIsochronousEndpointCompanionDescriptorTrait Implementations§
Source§impl Clone for IOUSBHostIOSourceDescriptors
impl Clone for IOUSBHostIOSourceDescriptors
Source§fn clone(&self) -> IOUSBHostIOSourceDescriptors
fn clone(&self) -> IOUSBHostIOSourceDescriptors
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 IOUSBHostIOSourceDescriptors
impl Debug for IOUSBHostIOSourceDescriptors
Source§impl PartialEq for IOUSBHostIOSourceDescriptors
impl PartialEq for IOUSBHostIOSourceDescriptors
Source§fn eq(&self, other: &IOUSBHostIOSourceDescriptors) -> bool
fn eq(&self, other: &IOUSBHostIOSourceDescriptors) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefEncode for IOUSBHostIOSourceDescriptors
impl RefEncode for IOUSBHostIOSourceDescriptors
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 IOUSBHostIOSourceDescriptors
impl StructuralPartialEq for IOUSBHostIOSourceDescriptors
Auto Trait Implementations§
impl Freeze for IOUSBHostIOSourceDescriptors
impl RefUnwindSafe for IOUSBHostIOSourceDescriptors
impl Send for IOUSBHostIOSourceDescriptors
impl Sync for IOUSBHostIOSourceDescriptors
impl Unpin for IOUSBHostIOSourceDescriptors
impl UnwindSafe for IOUSBHostIOSourceDescriptors
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.