#[repr(C)]pub struct IOUSBDevRequest {
pub bmRequestType: u8,
pub bRequest: u8,
pub wValue: u16,
pub wIndex: u16,
pub wLength: u16,
pub pData: *mut c_void,
pub wLenDone: u32,
}Available on crate feature
USB only.Expand description
Parameter block for control requests, using a simple pointer for the data to be transferred. Field: bmRequestType Request type: kUSBStandard, kUSBClass or kUSBVendor Field: bRequest Request code Field: wValue 16 bit parameter for request, host endianess Field: wIndex 16 bit parameter for request, host endianess Field: wLength Length of data part of request, 16 bits, host endianess Field: pData Pointer to data for request - data returned in bus endianess Field: wLenDone Set by standard completion routine to number of data bytes actually transferred
See also Apple’s documentation
Fields§
§bmRequestType: u8§bRequest: u8§wValue: u16§wIndex: u16§wLength: u16§pData: *mut c_void§wLenDone: u32Trait Implementations§
Source§impl Clone for IOUSBDevRequest
Available on crate feature usb only.
impl Clone for IOUSBDevRequest
Available on crate feature
usb only.Source§fn clone(&self) -> IOUSBDevRequest
fn clone(&self) -> IOUSBDevRequest
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 IOUSBDevRequest
Available on crate feature usb only.
impl Debug for IOUSBDevRequest
Available on crate feature
usb only.Source§impl Encode for IOUSBDevRequest
Available on crate features usb and objc2 only.
impl Encode for IOUSBDevRequest
Available on crate features
usb and objc2 only.Source§impl PartialEq for IOUSBDevRequest
Available on crate feature usb only.
impl PartialEq for IOUSBDevRequest
Available on crate feature
usb only.Source§impl RefEncode for IOUSBDevRequest
Available on crate features usb and objc2 only.
impl RefEncode for IOUSBDevRequest
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 IOUSBDevRequest
Available on crate feature
usb only.impl StructuralPartialEq for IOUSBDevRequest
Available on crate feature
usb only.Auto Trait Implementations§
impl Freeze for IOUSBDevRequest
impl RefUnwindSafe for IOUSBDevRequest
impl !Send for IOUSBDevRequest
impl !Sync for IOUSBDevRequest
impl Unpin for IOUSBDevRequest
impl UnwindSafe for IOUSBDevRequest
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.