[−][src]Struct libftd2xx::EepromStringsError
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
, andserial_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]
fn clone(&self) -> EepromStringsError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EepromStringsError
[src]
impl Debug for EepromStringsError
[src]
impl Default for EepromStringsError
[src]
fn default() -> EepromStringsError
[src]
impl Display for EepromStringsError
[src]
impl Eq for EepromStringsError
[src]
impl Error for EepromStringsError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl PartialEq<EepromStringsError> for EepromStringsError
[src]
fn eq(&self, other: &EepromStringsError) -> bool
[src]
fn ne(&self, other: &EepromStringsError) -> bool
[src]
impl StructuralEq for EepromStringsError
[src]
impl StructuralPartialEq for EepromStringsError
[src]
Auto Trait Implementations
impl RefUnwindSafe for EepromStringsError
impl Send for EepromStringsError
impl Sync for EepromStringsError
impl Unpin for EepromStringsError
impl UnwindSafe for EepromStringsError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,