Struct xhci::extended_capabilities::debug::DeviceDescriptorInfo2
source · #[repr(transparent)]pub struct DeviceDescriptorInfo2(_);
Expand description
Debug Capability Device Descriptor Info Register 2.
Implementations§
source§impl DeviceDescriptorInfo2
impl DeviceDescriptorInfo2
sourcepub fn product_id(self) -> u16
pub fn product_id(self) -> u16
Returns the value of the Product ID field.
sourcepub fn set_product_id(&mut self, id: u16)
pub fn set_product_id(&mut self, id: u16)
Sets the value of the Product ID field.
sourcepub fn device_revision(self) -> u16
pub fn device_revision(self) -> u16
Returns the value of the Device Revision field.
sourcepub fn set_device_revision(&mut self, revision: u16)
pub fn set_device_revision(&mut self, revision: u16)
Sets the value of the Device Revision field.
Trait Implementations§
source§impl Clone for DeviceDescriptorInfo2
impl Clone for DeviceDescriptorInfo2
source§fn clone(&self) -> DeviceDescriptorInfo2
fn clone(&self) -> DeviceDescriptorInfo2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeviceDescriptorInfo2
impl Debug for DeviceDescriptorInfo2
impl Copy for DeviceDescriptorInfo2
Auto Trait Implementations§
impl RefUnwindSafe for DeviceDescriptorInfo2
impl Send for DeviceDescriptorInfo2
impl Sync for DeviceDescriptorInfo2
impl Unpin for DeviceDescriptorInfo2
impl UnwindSafe for DeviceDescriptorInfo2
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