Enum libftd2xx::FtStatus[][src]

#[repr(u32)]pub enum FtStatus {
    INVALID_HANDLE,
    DEVICE_NOT_FOUND,
    DEVICE_NOT_OPENED,
    IO_ERROR,
    INSUFFICIENT_RESOURCES,
    INVALID_PARAMETER,
    INVALID_BAUD_RATE,
    DEVICE_NOT_OPENED_FOR_ERASE,
    DEVICE_NOT_OPENED_FOR_WRITE,
    FAILED_TO_WRITE_DEVICE,
    EEPROM_READ_FAILED,
    EEPROM_WRITE_FAILED,
    EEPROM_ERASE_FAILED,
    EEPROM_NOT_PRESENT,
    EEPROM_NOT_PROGRAMMED,
    INVALID_ARGS,
    NOT_SUPPORTED,
    OTHER_ERROR,
    DEVICE_LIST_NOT_READY,
}

These are the C API error codes.

Unfortunately there are provided in the C API as self documenting, which they are for the most part.

This is the most common error in this crate, majority of functions and methods will return this in the Result.

This is also used in the TimeoutError, and DeviceTypeError enumerations.

Variants

INVALID_HANDLE
DEVICE_NOT_FOUND
DEVICE_NOT_OPENED
IO_ERROR
INSUFFICIENT_RESOURCES
INVALID_PARAMETER
INVALID_BAUD_RATE
DEVICE_NOT_OPENED_FOR_ERASE
DEVICE_NOT_OPENED_FOR_WRITE
FAILED_TO_WRITE_DEVICE
EEPROM_READ_FAILED
EEPROM_WRITE_FAILED
EEPROM_ERASE_FAILED
EEPROM_NOT_PRESENT
EEPROM_NOT_PROGRAMMED
INVALID_ARGS
NOT_SUPPORTED
OTHER_ERROR
DEVICE_LIST_NOT_READY

Trait Implementations

impl Clone for FtStatus[src]

impl Copy for FtStatus[src]

impl Debug for FtStatus[src]

impl Display for FtStatus[src]

impl Eq for FtStatus[src]

impl Error for FtStatus[src]

impl From<FtStatus> for TimeoutError[src]

impl From<FtStatus> for DeviceTypeError[src]

impl From<u32> for FtStatus[src]

impl PartialEq<FtStatus> for FtStatus[src]

impl StructuralEq for FtStatus[src]

impl StructuralPartialEq for FtStatus[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.