#[repr(C)]pub struct IOUSBFindEndpointRequest {
pub type: u8,
pub direction: u8,
pub maxPacketSize: u16,
pub interval: u8,
}Available on crate feature
USB only.Expand description
Struct used to find endpoints of an interface type and direction are used to match endpoints, type, direction, maxPacketSize and interval are updated with the properties of the found endpoint. Field: type Type of endpoint: kUSBControl, kUSBIsoc, kUSBBulk, kUSBInterrupt, kUSBAnyType. If kUSBAnyType is specified, this field is treated as a don’t care. Field: direction Direction of endpoint: kUSBOut, kUSBIn, kUSBAnyDirn. If kUSBAnyDirn is specified, this field is treated as a don’t care. Field: maxPacketSize maximum packet size of endpoint. Field: interval Polling interval in mSec for endpoint.
See also Apple’s documentation
Fields§
§type: u8§direction: u8§maxPacketSize: u16§interval: u8Trait Implementations§
Source§impl Clone for IOUSBFindEndpointRequest
Available on crate feature usb only.
impl Clone for IOUSBFindEndpointRequest
Available on crate feature
usb only.Source§fn clone(&self) -> IOUSBFindEndpointRequest
fn clone(&self) -> IOUSBFindEndpointRequest
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 IOUSBFindEndpointRequest
Available on crate feature usb only.
impl Debug for IOUSBFindEndpointRequest
Available on crate feature
usb only.Source§impl Encode for IOUSBFindEndpointRequest
Available on crate features usb and objc2 only.
impl Encode for IOUSBFindEndpointRequest
Available on crate features
usb and objc2 only.Source§impl PartialEq for IOUSBFindEndpointRequest
Available on crate feature usb only.
impl PartialEq for IOUSBFindEndpointRequest
Available on crate feature
usb only.Source§impl RefEncode for IOUSBFindEndpointRequest
Available on crate features usb and objc2 only.
impl RefEncode for IOUSBFindEndpointRequest
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 IOUSBFindEndpointRequest
Available on crate feature
usb only.impl StructuralPartialEq for IOUSBFindEndpointRequest
Available on crate feature
usb only.Auto Trait Implementations§
impl Freeze for IOUSBFindEndpointRequest
impl RefUnwindSafe for IOUSBFindEndpointRequest
impl Send for IOUSBFindEndpointRequest
impl Sync for IOUSBFindEndpointRequest
impl Unpin for IOUSBFindEndpointRequest
impl UnwindSafe for IOUSBFindEndpointRequest
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.