#[repr(C, packed(1))]pub struct InterfaceDescriptor {
pub b_length: u8,
pub b_descriptor_type: DescriptorType,
pub b_interface_number: u8,
pub b_alternate_setting: u8,
pub b_num_endpoints: u8,
pub b_interface_class: u8,
pub b_interface_sub_class: u8,
pub b_interface_protocol: u8,
pub i_interface: u8,
}
Fields§
§b_length: u8
§b_descriptor_type: DescriptorType
§b_interface_number: u8
§b_alternate_setting: u8
§b_num_endpoints: u8
§b_interface_class: u8
§b_interface_sub_class: u8
§b_interface_protocol: u8
§i_interface: u8
Trait Implementations§
Source§impl Clone for InterfaceDescriptor
impl Clone for InterfaceDescriptor
Source§fn clone(&self) -> InterfaceDescriptor
fn clone(&self) -> InterfaceDescriptor
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 InterfaceDescriptor
impl Debug for InterfaceDescriptor
Source§impl PartialEq for InterfaceDescriptor
impl PartialEq for InterfaceDescriptor
impl Copy for InterfaceDescriptor
impl StructuralPartialEq for InterfaceDescriptor
Auto Trait Implementations§
impl Freeze for InterfaceDescriptor
impl RefUnwindSafe for InterfaceDescriptor
impl Send for InterfaceDescriptor
impl Sync for InterfaceDescriptor
impl Unpin for InterfaceDescriptor
impl UnwindSafe for InterfaceDescriptor
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