pub struct DeviceDescriptor {
pub vid: u16,
pub pid: u16,
pub description: &'static str,
pub serial: Option<u128>,
pub product_string: Option<String>,
pub usb_api_version: u16,
}Expand description
HackRF information available from USB discovery without claiming it.
Fields§
§vid: u16USB vendor ID.
pid: u16USB product ID.
description: &'static strStatic description from the known HackRF USB ID table.
serial: Option<u128>Parsed full 128-bit USB serial, if present and valid.
product_string: Option<String>USB product string, when available.
usb_api_version: u16Raw HackRF USB API version from bcdDevice.
Trait Implementations§
Source§impl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
Source§fn clone(&self) -> DeviceDescriptor
fn clone(&self) -> DeviceDescriptor
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 DeviceDescriptor
impl Debug for DeviceDescriptor
impl Eq for DeviceDescriptor
Source§impl PartialEq for DeviceDescriptor
impl PartialEq for DeviceDescriptor
impl StructuralPartialEq for DeviceDescriptor
Auto Trait Implementations§
impl Freeze for DeviceDescriptor
impl RefUnwindSafe for DeviceDescriptor
impl Send for DeviceDescriptor
impl Sync for DeviceDescriptor
impl Unpin for DeviceDescriptor
impl UnsafeUnpin for DeviceDescriptor
impl UnwindSafe for DeviceDescriptor
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