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 descriptor_type(&self) -> u8
pub fn descriptor_type(&self) -> u8
Returns the descriptor type
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<'a> ⓘ
pub fn endpoint_descriptors(&self) -> EndpointDescriptors<'a> ⓘ
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