pub struct PortDescriptor {
pub port_index: usize,
pub driver: DriverType,
pub vendor_id: u16,
pub product_id: u16,
}Expand description
One logical serial port exposed by a USB composite / multi-interface device.
Fields§
§port_index: usizeZero-based index passed to open_port.
driver: DriverTypeDriver selected by ProbeTable for this product.
vendor_id: u16§product_id: u16Trait Implementations§
Source§impl Clone for PortDescriptor
impl Clone for PortDescriptor
Source§fn clone(&self) -> PortDescriptor
fn clone(&self) -> PortDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PortDescriptor
impl RefUnwindSafe for PortDescriptor
impl Send for PortDescriptor
impl Sync for PortDescriptor
impl Unpin for PortDescriptor
impl UnsafeUnpin for PortDescriptor
impl UnwindSafe for PortDescriptor
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