Struct rusb::InterfaceDescriptor [−][src]
pub struct InterfaceDescriptor<'a> { /* fields omitted */ }
Expand description
Describes an alternate setting for an interface.
Implementations
Returns the interface’s number.
Returns the alternate setting number.
Returns the interface’s class code.
Returns the interface’s sub class code.
Returns the interface’s protocol code.
Returns the index of the string descriptor that describes the interface.
Returns the number of endpoints belonging to this interface.
pub fn endpoint_descriptors(&self) -> EndpointDescriptors<'_>ⓘNotable traits for EndpointDescriptors<'a>impl<'a> Iterator for EndpointDescriptors<'a> type Item = EndpointDescriptor<'a>;
pub fn endpoint_descriptors(&self) -> EndpointDescriptors<'_>ⓘNotable traits for EndpointDescriptors<'a>impl<'a> Iterator for EndpointDescriptors<'a> type Item = EndpointDescriptor<'a>;
Notable traits for EndpointDescriptors<'a>
impl<'a> Iterator for EndpointDescriptors<'a> type Item = EndpointDescriptor<'a>;
Returns an iterator over the interface’s endpoint descriptors.