Struct libftd2xx::DeviceInfo [−][src]
FTDI device information.
This is returned by list_devices
and device_info
.
Fields
port_open: bool
true
if the port is open.
speed: Option<Speed>
USB link speed.
This will be None
when getting the information of an open device with
the device_info
function.
device_type: DeviceType
FTDI device type.
vendor_id: u16
FTDI USB device vendor ID.
This is typically 0x0403
.
product_id: u16
FTDI USB product ID.
Typical FTDI product IDs:
0x6001
FT232AM/FT232BM/FT232R0x6010
FT2232C/FT2232D/FT2232H0x6011
FT4232/FT4232H0x6014
FT232H0x6015
FT230X/FT231X/FT234X
serial_number: String
Device serial number.
This is assumed to be UTF-8. Data that is not UTF-8 will appear as the replacement character �.
description: String
Device description.
This is assumed to be UTF-8. Data that is not UTF-8 will appear as the replacement character �.
Trait Implementations
impl Clone for DeviceInfo
[src]
fn clone(&self) -> DeviceInfo
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DeviceInfo
[src]
impl Default for DeviceInfo
[src]
fn default() -> DeviceInfo
[src]
impl Eq for DeviceInfo
[src]
impl Ord for DeviceInfo
[src]
fn cmp(&self, other: &DeviceInfo) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<DeviceInfo> for DeviceInfo
[src]
fn eq(&self, other: &DeviceInfo) -> bool
[src]
fn ne(&self, other: &DeviceInfo) -> bool
[src]
impl PartialOrd<DeviceInfo> for DeviceInfo
[src]
fn partial_cmp(&self, other: &DeviceInfo) -> Option<Ordering>
[src]
fn lt(&self, other: &DeviceInfo) -> bool
[src]
fn le(&self, other: &DeviceInfo) -> bool
[src]
fn gt(&self, other: &DeviceInfo) -> bool
[src]
fn ge(&self, other: &DeviceInfo) -> bool
[src]
impl StructuralEq for DeviceInfo
[src]
impl StructuralPartialEq for DeviceInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceInfo
[src]
impl Send for DeviceInfo
[src]
impl Sync for DeviceInfo
[src]
impl Unpin for DeviceInfo
[src]
impl UnwindSafe for DeviceInfo
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,