pub struct DeviceInfo { /* private fields */ }Expand description
Device information
Implementations§
Source§impl DeviceInfo
impl DeviceInfo
Sourcepub fn uid(&self) -> String
pub fn uid(&self) -> String
Get the device unique identifier (based on the port it is connected, platform specific)
Sourcepub fn serial_number(&self) -> String
pub fn serial_number(&self) -> String
Get the device serial number
Sourcepub fn firmware_version(&self) -> String
pub fn firmware_version(&self) -> String
Get the device firmware version
Sourcepub fn hardware_version(&self) -> String
pub fn hardware_version(&self) -> String
Get the device hardware version
Sourcepub fn connection_type(&self) -> String
pub fn connection_type(&self) -> String
Get the device connection type
Sourcepub fn minimum_supported_sdk_version(&self) -> String
pub fn minimum_supported_sdk_version(&self) -> String
Get the device minimum supported SDK version
Sourcepub fn device_type(&self) -> DeviceType
pub fn device_type(&self) -> DeviceType
Get the device type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceInfo
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