pub struct XhciInterfaceDescriptor {
pub interface_number: u8,
pub alternate_setting: u8,
pub num_endpoints: u8,
pub interface_class: u8,
pub interface_subclass: u8,
pub interface_protocol: u8,
pub interface_index: u8,
}Expand description
Parsed USB Interface Descriptor (9 bytes)
Fields§
§interface_number: u8§alternate_setting: u8§num_endpoints: u8§interface_class: u8§interface_subclass: u8§interface_protocol: u8§interface_index: u8Implementations§
Source§impl XhciInterfaceDescriptor
impl XhciInterfaceDescriptor
Sourcepub fn parse(data: &[u8]) -> Result<Self, KernelError>
pub fn parse(data: &[u8]) -> Result<Self, KernelError>
Parse from a raw descriptor buffer (at least 9 bytes)
Trait Implementations§
Source§impl Clone for XhciInterfaceDescriptor
impl Clone for XhciInterfaceDescriptor
Source§fn clone(&self) -> XhciInterfaceDescriptor
fn clone(&self) -> XhciInterfaceDescriptor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XhciInterfaceDescriptor
impl Debug for XhciInterfaceDescriptor
impl Copy for XhciInterfaceDescriptor
Auto Trait Implementations§
impl Freeze for XhciInterfaceDescriptor
impl RefUnwindSafe for XhciInterfaceDescriptor
impl Send for XhciInterfaceDescriptor
impl Sync for XhciInterfaceDescriptor
impl Unpin for XhciInterfaceDescriptor
impl UnwindSafe for XhciInterfaceDescriptor
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)