pub struct UsbDeviceFilter {
pub vid: Option<String>,
pub pid: Option<String>,
pub serial: Option<String>,
}Expand description
Optional filters for crate::LagerBox::usb_devices_matching, applied
box-side. vid/pid are hex strings (with or without 0x); serial
is an exact iSerial match. An empty filter returns every device.
Fields§
§vid: Option<String>USB vendor id, hex (e.g. "0483").
pid: Option<String>USB product id, hex (e.g. "df11").
serial: Option<String>Exact iSerial string.
Trait Implementations§
Source§impl Clone for UsbDeviceFilter
impl Clone for UsbDeviceFilter
Source§fn clone(&self) -> UsbDeviceFilter
fn clone(&self) -> UsbDeviceFilter
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 moreSource§impl Debug for UsbDeviceFilter
impl Debug for UsbDeviceFilter
Source§impl Default for UsbDeviceFilter
impl Default for UsbDeviceFilter
Source§fn default() -> UsbDeviceFilter
fn default() -> UsbDeviceFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UsbDeviceFilter
impl RefUnwindSafe for UsbDeviceFilter
impl Send for UsbDeviceFilter
impl Sync for UsbDeviceFilter
impl Unpin for UsbDeviceFilter
impl UnsafeUnpin for UsbDeviceFilter
impl UnwindSafe for UsbDeviceFilter
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