#[repr(C)]pub struct DeviceDescriptorBase {
pub length: u8,
pub descriptor_type: u8,
pub usb_version: u16,
pub class: u8,
pub subclass: u8,
pub protocol: u8,
pub max_packet_size_0: u8,
}Fields§
§length: u8§descriptor_type: u8§usb_version: u16§class: u8§subclass: u8§protocol: u8§max_packet_size_0: u8Implementations§
Trait Implementations§
Source§impl Clone for DeviceDescriptorBase
impl Clone for DeviceDescriptorBase
Source§fn clone(&self) -> DeviceDescriptorBase
fn clone(&self) -> DeviceDescriptorBase
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 DeviceDescriptorBase
impl Debug for DeviceDescriptorBase
impl Copy for DeviceDescriptorBase
Auto Trait Implementations§
impl Freeze for DeviceDescriptorBase
impl RefUnwindSafe for DeviceDescriptorBase
impl Send for DeviceDescriptorBase
impl Sync for DeviceDescriptorBase
impl Unpin for DeviceDescriptorBase
impl UnwindSafe for DeviceDescriptorBase
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