Struct libftd2xx::DeviceInfo[][src]

pub struct DeviceInfo {
    pub port_open: bool,
    pub speed: Option<Speed>,
    pub device_type: DeviceType,
    pub vendor_id: u16,
    pub product_id: u16,
    pub serial_number: String,
    pub description: String,
}

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/FT232R
  • 0x6010 FT2232C/FT2232D/FT2232H
  • 0x6011 FT4232/FT4232H
  • 0x6014 FT232H
  • 0x6015 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]

impl Debug for DeviceInfo[src]

impl Default for DeviceInfo[src]

impl Eq for DeviceInfo[src]

impl Ord for DeviceInfo[src]

impl PartialEq<DeviceInfo> for DeviceInfo[src]

impl PartialOrd<DeviceInfo> for DeviceInfo[src]

impl StructuralEq for DeviceInfo[src]

impl StructuralPartialEq for DeviceInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.