pub struct DeviceId {
pub vid: u16,
pub pid: u16,
pub sn: SmolStr,
}Expand description
Permanent, connection-independent device identifier.
Could be used for referencing devices persistently, e.g. in configurations.
Fields§
§vid: u16Vendor id
pid: u16Product id
sn: SmolStrNon-empty serial number
Trait Implementations§
impl Eq for DeviceId
impl StructuralPartialEq for DeviceId
Auto Trait Implementations§
impl Freeze for DeviceId
impl RefUnwindSafe for DeviceId
impl Send for DeviceId
impl Sync for DeviceId
impl Unpin for DeviceId
impl UnsafeUnpin for DeviceId
impl UnwindSafe for DeviceId
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