pub struct InterfaceDescriptor {
pub len: u8,
pub descriptor_type: u8,
pub interface_number: u8,
pub alternate_setting: u8,
pub num_endpoints: u8,
pub interface_class: u8,
pub interface_subclass: u8,
pub interface_protocol: u8,
pub interface_name: StringIndex,
}Expand description
USB interface descriptor for audio interfaces.
Fields§
§len: u8Length of this descriptor in bytes.
descriptor_type: u8Type of this descriptor. Must be 0x04.
interface_number: u8Number of this interface.
alternate_setting: u8Value used to select this alternate setting for the interface.
num_endpoints: u8Number of endpoints used by this interface.
interface_class: u8USB interface class code.
interface_subclass: u8USB interface subclass code.
interface_protocol: u8USB interface protocol code.
interface_name: StringIndexIndex of string descriptor describing this interface.
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 Format for InterfaceDescriptorwhere
StringIndex: Format,
impl Format for InterfaceDescriptorwhere
StringIndex: Format,
Source§impl From<&InterfaceDescriptor<'_>> for InterfaceDescriptor
impl From<&InterfaceDescriptor<'_>> for InterfaceDescriptor
Source§fn from(g: &GenericInterfaceDescriptor<'_>) -> Self
fn from(g: &GenericInterfaceDescriptor<'_>) -> Self
Converts to this type from the input type.
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