pub struct UsbClass {
pub vendor_id: u16,
pub product_id: u16,
pub device_class: u8,
pub device_subclass: u8,
pub device_protocol: u8,
}
Expand description
USB class messaging device path node.
Fields§
§vendor_id: u16
USB vendor ID.
product_id: u16
USB product ID.
device_class: u8
USB device class.
device_subclass: u8
USB device subclass.
device_protocol: u8
USB device protocol.
Trait Implementations§
source§impl BuildNode for UsbClass
impl BuildNode for UsbClass
source§fn size_in_bytes(&self) -> Result<u16, BuildError>
fn size_in_bytes(&self) -> Result<u16, BuildError>
Size of the node in bytes, including the standard node
header. Returns
BuildError::NodeTooBig
if the node’s size
does not fit in a u16
.source§fn write_data(&self, out: &mut [MaybeUninit<u8>])
fn write_data(&self, out: &mut [MaybeUninit<u8>])
Write out the node data. Read more
Auto Trait Implementations§
impl Freeze for UsbClass
impl RefUnwindSafe for UsbClass
impl Send for UsbClass
impl Sync for UsbClass
impl Unpin for UsbClass
impl UnwindSafe for UsbClass
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