Struct rusb::InterfaceDescriptor
source · pub struct InterfaceDescriptor<'a> { /* private fields */ }
Expand description
Describes an alternate setting for an interface.
Implementations§
source§impl<'a> InterfaceDescriptor<'a>
impl<'a> InterfaceDescriptor<'a>
sourcepub fn interface_number(&self) -> u8
pub fn interface_number(&self) -> u8
Returns the interface’s number.
sourcepub fn setting_number(&self) -> u8
pub fn setting_number(&self) -> u8
Returns the alternate setting number.
sourcepub fn class_code(&self) -> u8
pub fn class_code(&self) -> u8
Returns the interface’s class code.
sourcepub fn sub_class_code(&self) -> u8
pub fn sub_class_code(&self) -> u8
Returns the interface’s sub class code.
sourcepub fn protocol_code(&self) -> u8
pub fn protocol_code(&self) -> u8
Returns the interface’s protocol code.
sourcepub fn description_string_index(&self) -> Option<u8>
pub fn description_string_index(&self) -> Option<u8>
Returns the index of the string descriptor that describes the interface.
sourcepub fn num_endpoints(&self) -> u8
pub fn num_endpoints(&self) -> u8
Returns the number of endpoints belonging to this interface.
sourcepub fn endpoint_descriptors(&self) -> EndpointDescriptors<'_> ⓘ
pub fn endpoint_descriptors(&self) -> EndpointDescriptors<'_> ⓘ
Returns an iterator over the interface’s endpoint descriptors.