[][src]Struct libftd2xx::EepromValueError

pub struct EepromValueError {
    pub value: u8,
}

EEPROM value error.

This is used in the TryFrom trait implementation for these EEPROM enums:

Some EEPROM values, such as the DriveCurrent have a fixed range of valid values. However, the EEPROM may not be programmed with valid values.

Fields

value: u8

Invalid value.

Implementations

impl EepromValueError[src]

pub fn new(value: u8) -> EepromValueError[src]

Create a new EepromValueError.

Trait Implementations

impl Clone for EepromValueError[src]

impl Copy for EepromValueError[src]

impl Debug for EepromValueError[src]

impl Display for EepromValueError[src]

impl Eq for EepromValueError[src]

impl Error for EepromValueError[src]

impl Ord for EepromValueError[src]

impl PartialEq<EepromValueError> for EepromValueError[src]

impl PartialOrd<EepromValueError> for EepromValueError[src]

impl StructuralEq for EepromValueError[src]

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