[−][src]Struct rusb::InterfaceDescriptor
Describes an alternate setting for an interface.
Methods
impl<'a> InterfaceDescriptor<'a>
[src]
pub fn interface_number(&self) -> u8
[src]
Returns the interface's number.
pub fn setting_number(&self) -> u8
[src]
Returns the alternate setting number.
pub fn class_code(&self) -> u8
[src]
Returns the interface's class code.
pub fn sub_class_code(&self) -> u8
[src]
Returns the interface's sub class code.
pub fn protocol_code(&self) -> u8
[src]
Returns the interface's protocol code.
pub fn description_string_index(&self) -> Option<u8>
[src]
Returns the index of the string descriptor that describes the interface.
pub fn num_endpoints(&self) -> u8
[src]
Returns the number of endpoints belonging to this interface.
ⓘImportant traits for EndpointDescriptors<'a>pub fn endpoint_descriptors(&self) -> EndpointDescriptors
[src]
ⓘImportant traits for EndpointDescriptors<'a>
Returns an iterator over the interface's endpoint descriptors.
pub fn extra(&self) -> Option<&[u8]>
[src]
Returns the unknown 'extra' bytes that libusb does not understand.
Trait Implementations
impl<'a> Debug for InterfaceDescriptor<'a>
[src]
Auto Trait Implementations
impl<'a> !Send for InterfaceDescriptor<'a>
impl<'a> !Sync for InterfaceDescriptor<'a>
impl<'a> Unpin for InterfaceDescriptor<'a>
impl<'a> UnwindSafe for InterfaceDescriptor<'a>
impl<'a> RefUnwindSafe for InterfaceDescriptor<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,