Struct flipperzero_sys::FuriHalUsbInterface
source · [−]#[repr(C)]pub struct FuriHalUsbInterface {
pub init: Option<unsafe extern "C" fn(dev: *mut usbd_device, intf: *mut FuriHalUsbInterface, ctx: *mut c_void)>,
pub deinit: Option<unsafe extern "C" fn(dev: *mut usbd_device)>,
pub wakeup: Option<unsafe extern "C" fn(dev: *mut usbd_device)>,
pub suspend: Option<unsafe extern "C" fn(dev: *mut usbd_device)>,
pub dev_descr: *mut usb_device_descriptor,
pub str_manuf_descr: *mut c_void,
pub str_prod_descr: *mut c_void,
pub str_serial_descr: *mut c_void,
pub cfg_descr: *mut c_void,
}Fields
init: Option<unsafe extern "C" fn(dev: *mut usbd_device, intf: *mut FuriHalUsbInterface, ctx: *mut c_void)>deinit: Option<unsafe extern "C" fn(dev: *mut usbd_device)>wakeup: Option<unsafe extern "C" fn(dev: *mut usbd_device)>suspend: Option<unsafe extern "C" fn(dev: *mut usbd_device)>dev_descr: *mut usb_device_descriptorstr_manuf_descr: *mut c_voidstr_prod_descr: *mut c_voidstr_serial_descr: *mut c_voidcfg_descr: *mut c_voidTrait Implementations
sourceimpl Clone for FuriHalUsbInterface
impl Clone for FuriHalUsbInterface
sourcefn clone(&self) -> FuriHalUsbInterface
fn clone(&self) -> FuriHalUsbInterface
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FuriHalUsbInterface
impl Debug for FuriHalUsbInterface
impl Copy for FuriHalUsbInterface
Auto Trait Implementations
impl RefUnwindSafe for FuriHalUsbInterface
impl !Send for FuriHalUsbInterface
impl !Sync for FuriHalUsbInterface
impl Unpin for FuriHalUsbInterface
impl UnwindSafe for FuriHalUsbInterface
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more