Struct libftd2xx::EepromStringsError
source · pub struct EepromStringsError {
pub manufacturer: usize,
pub manufacturer_id: usize,
pub description: usize,
pub serial_number: usize,
}
Expand description
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§
Trait Implementations§
source§impl Clone for EepromStringsError
impl Clone for EepromStringsError
source§fn clone(&self) -> EepromStringsError
fn clone(&self) -> EepromStringsError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EepromStringsError
impl Debug for EepromStringsError
source§impl Default for EepromStringsError
impl Default for EepromStringsError
source§fn default() -> EepromStringsError
fn default() -> EepromStringsError
Returns the “default value” for a type. Read more
source§impl Display for EepromStringsError
impl Display for EepromStringsError
source§impl Error for EepromStringsError
impl Error for EepromStringsError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for EepromStringsError
impl PartialEq for EepromStringsError
source§fn eq(&self, other: &EepromStringsError) -> bool
fn eq(&self, other: &EepromStringsError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EepromStringsError
impl Eq for EepromStringsError
impl StructuralPartialEq for EepromStringsError
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more