[][src]Struct libftd2xx::DeviceInfo

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: [u8; 16],
    pub description: [u8; 64],
}

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 vendor ID.

product_id: u16

FTDI product ID.

serial_number: [u8; 16]

Device serial number.

description: [u8; 64]

Device description.

Trait Implementations

impl Clone for DeviceInfo[src]

impl Display 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> ToString for T where
    T: Display + ?Sized
[src]

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.