Struct simics_api_sys::bindings::usb_device_interface
source · #[repr(C)]pub struct usb_device_interface {
pub submit_transfer: Option<unsafe extern "C" fn(dev_obj: *mut conf_object_t, transfer: *mut usb_transfer_t) -> usb_transfer_completion_t>,
pub abort_transfer: Option<unsafe extern "C" fn(dev_obj: *mut conf_object_t, transfer: *mut usb_transfer_t)>,
pub reset: Option<unsafe extern "C" fn(dev_obj: *mut conf_object_t)>,
}
Fields§
§submit_transfer: Option<unsafe extern "C" fn(dev_obj: *mut conf_object_t, transfer: *mut usb_transfer_t) -> usb_transfer_completion_t>
§abort_transfer: Option<unsafe extern "C" fn(dev_obj: *mut conf_object_t, transfer: *mut usb_transfer_t)>
§reset: Option<unsafe extern "C" fn(dev_obj: *mut conf_object_t)>
Trait Implementations§
source§impl Clone for usb_device_interface
impl Clone for usb_device_interface
source§fn clone(&self) -> usb_device_interface
fn clone(&self) -> usb_device_interface
Returns a copy 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 usb_device_interface
impl Debug for usb_device_interface
source§impl Default for usb_device_interface
impl Default for usb_device_interface
source§fn default() -> usb_device_interface
fn default() -> usb_device_interface
Returns the “default value” for a type. Read more
source§impl Hash for usb_device_interface
impl Hash for usb_device_interface
source§impl Ord for usb_device_interface
impl Ord for usb_device_interface
source§fn cmp(&self, other: &usb_device_interface) -> Ordering
fn cmp(&self, other: &usb_device_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for usb_device_interface
impl PartialEq for usb_device_interface
source§impl PartialOrd for usb_device_interface
impl PartialOrd for usb_device_interface
impl Copy for usb_device_interface
impl Eq for usb_device_interface
impl StructuralPartialEq for usb_device_interface
Auto Trait Implementations§
impl Freeze for usb_device_interface
impl RefUnwindSafe for usb_device_interface
impl Send for usb_device_interface
impl Sync for usb_device_interface
impl Unpin for usb_device_interface
impl UnwindSafe for usb_device_interface
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)