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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for InterfaceDescriptor<'a>
impl<'a> RefUnwindSafe for InterfaceDescriptor<'a>
impl<'a> !Send for InterfaceDescriptor<'a>
impl<'a> !Sync for InterfaceDescriptor<'a>
impl<'a> Unpin for InterfaceDescriptor<'a>
impl<'a> UnwindSafe for InterfaceDescriptor<'a>
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