Struct ft60x_rs::DeviceInfo
source · pub struct DeviceInfo { /* private fields */ }
Expand description
Holds device information regarding a D3XX device attached to the system.
Implementations§
source§impl DeviceInfo
impl DeviceInfo
sourcepub fn product_id(&self) -> u16
pub fn product_id(&self) -> u16
Product ID.
sourcepub fn location_identifier(&self) -> u32
pub fn location_identifier(&self) -> u32
Location identifier.
sourcepub fn description(&self) -> Result<String>
pub fn description(&self) -> Result<String>
Device description.
sourcepub fn serial_number(&self) -> Result<String>
pub fn serial_number(&self) -> Result<String>
Device serial number.
sourcepub fn raw_handle(&self) -> Option<*mut c_void>
pub fn raw_handle(&self) -> Option<*mut c_void>
Raw handle to the device.
Returns None
if the device is not opened, or Some(handle)
if the device
is currently open.
Trait Implementations§
source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
Returns a copy of the value. Read more
1.0.0 · 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 DeviceInfo
impl Debug for DeviceInfo
source§impl Default for DeviceInfo
impl Default for DeviceInfo
source§fn default() -> DeviceInfo
fn default() -> DeviceInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DeviceInfo
impl !Send for DeviceInfo
impl !Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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