UsbIoProtocol

Struct UsbIoProtocol 

Source
#[repr(C)]
pub struct UsbIoProtocol {
Show 13 fields pub control_transfer: unsafe extern "efiapi" fn(this: *mut Self, request: *mut DeviceRequest, direction: DataDirection, timeout: u32, data: *mut c_void, data_length: usize, status: *mut UsbTransferStatus) -> Status, pub bulk_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, data: *mut c_void, data_length: *mut usize, timeout: usize, status: *mut UsbTransferStatus) -> Status, pub async_interrupt_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, is_new_transfer: Boolean, polling_interval: usize, data_length: usize, interrupt_callback: AsyncUsbTransferCallback, context: *mut c_void) -> Status, pub sync_interrupt_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, data: *mut c_void, data_length: *mut usize, timeout: usize, status: *mut UsbTransferStatus) -> Status, pub isochronous_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, data: *mut c_void, data_length: usize, status: *mut UsbTransferStatus) -> Status, pub async_isochronous_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, data: *mut c_void, data_length: usize, isochronous_callback: AsyncUsbTransferCallback, context: *mut c_void) -> Status, pub get_device_descriptor: unsafe extern "efiapi" fn(this: *mut Self, device_descriptor: *mut DeviceDescriptor) -> Status, pub get_config_descriptor: unsafe extern "efiapi" fn(this: *mut Self, config_descriptor: *mut ConfigDescriptor) -> Status, pub get_interface_descriptor: unsafe extern "efiapi" fn(this: *mut Self, interface_descriptor: *mut InterfaceDescriptor) -> Status, pub get_endpoint_descriptor: unsafe extern "efiapi" fn(this: *mut Self, endpoint_index: u8, endpoint_descriptor: *mut EndpointDescriptor) -> Status, pub get_string_descriptor: unsafe extern "efiapi" fn(this: *mut Self, lang_id: u16, string_id: u8, string: *mut *mut Char16) -> Status, pub get_supported_languages: unsafe extern "efiapi" fn(this: *mut Self, lang_id_table: *mut *mut u16, table_size: *mut u16) -> Status, pub port_reset: unsafe extern "efiapi" fn(this: *mut Self) -> Status,
}

Fields§

§control_transfer: unsafe extern "efiapi" fn(this: *mut Self, request: *mut DeviceRequest, direction: DataDirection, timeout: u32, data: *mut c_void, data_length: usize, status: *mut UsbTransferStatus) -> Status§bulk_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, data: *mut c_void, data_length: *mut usize, timeout: usize, status: *mut UsbTransferStatus) -> Status§async_interrupt_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, is_new_transfer: Boolean, polling_interval: usize, data_length: usize, interrupt_callback: AsyncUsbTransferCallback, context: *mut c_void) -> Status§sync_interrupt_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, data: *mut c_void, data_length: *mut usize, timeout: usize, status: *mut UsbTransferStatus) -> Status§isochronous_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, data: *mut c_void, data_length: usize, status: *mut UsbTransferStatus) -> Status§async_isochronous_transfer: unsafe extern "efiapi" fn(this: *mut Self, device_endpoint: u8, data: *mut c_void, data_length: usize, isochronous_callback: AsyncUsbTransferCallback, context: *mut c_void) -> Status§get_device_descriptor: unsafe extern "efiapi" fn(this: *mut Self, device_descriptor: *mut DeviceDescriptor) -> Status§get_config_descriptor: unsafe extern "efiapi" fn(this: *mut Self, config_descriptor: *mut ConfigDescriptor) -> Status§get_interface_descriptor: unsafe extern "efiapi" fn(this: *mut Self, interface_descriptor: *mut InterfaceDescriptor) -> Status§get_endpoint_descriptor: unsafe extern "efiapi" fn(this: *mut Self, endpoint_index: u8, endpoint_descriptor: *mut EndpointDescriptor) -> Status§get_string_descriptor: unsafe extern "efiapi" fn(this: *mut Self, lang_id: u16, string_id: u8, string: *mut *mut Char16) -> Status§get_supported_languages: unsafe extern "efiapi" fn(this: *mut Self, lang_id_table: *mut *mut u16, table_size: *mut u16) -> Status§port_reset: unsafe extern "efiapi" fn(this: *mut Self) -> Status

Implementations§

Trait Implementations§

Source§

impl Debug for UsbIoProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.