#[repr(C, packed(1))]pub struct Device {}Fields§
§len: u8§descriptor_type: u8§cd_usb: u16§class: u8§subclass: u8§protocol: u8§max_packet_size0: u8§vendor: u16§product_id: u16§device: u16§manufacture: u8§product: u8§serial_number: u8§num_configurations: u8Implementations§
Source§impl Device
impl Device
pub fn max_packet_size(&self) -> u16
pub fn is_refer_interface(&self) -> bool
Trait Implementations§
impl Copy for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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