Struct libftd2xx::EepromStringsError[][src]

pub struct EepromStringsError {
    pub manufacturer: usize,
    pub manufacturer_id: usize,
    pub description: usize,
    pub serial_number: usize,
}

EEPROM strings error.

This error is used by set_manufacturer, set_manufacturer_id, set_description, and set_serial_number methods on EEPROM structures when the length of these strings exceeds the maximums.

There are two limits to these strings:

  • Less than or equal to 64 characters for each individual string.
  • The total length of the manufacturer, manufacturer_id, description, and serial_number strings can not exceed 96 characters.

Fields

manufacturer: usize

Manufacturer string length.

manufacturer_id: usize

Manufacturer ID string length.

description: usize

Description string length.

serial_number: usize

Serial number string length.

Implementations

impl EepromStringsError[src]

pub const MAX_LEN: usize[src]

Maximum length per string.

pub const MAX_TOTAL_LEN: usize[src]

Maximum total string length.

pub fn total_len(self) -> usize[src]

Total length of all the strings.

Trait Implementations

impl Clone for EepromStringsError[src]

impl Copy for EepromStringsError[src]

impl Debug for EepromStringsError[src]

impl Default for EepromStringsError[src]

impl Display for EepromStringsError[src]

impl Eq for EepromStringsError[src]

impl Error for EepromStringsError[src]

impl PartialEq<EepromStringsError> for EepromStringsError[src]

impl StructuralEq for EepromStringsError[src]

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