Struct libftd2xx::EepromValueError
source · pub struct EepromValueError {
pub value: u8,
}
Expand description
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§
source§impl EepromValueError
impl EepromValueError
sourcepub const fn new(value: u8) -> EepromValueError
pub const fn new(value: u8) -> EepromValueError
Create a new EepromValueError
.
Trait Implementations§
source§impl Clone for EepromValueError
impl Clone for EepromValueError
source§fn clone(&self) -> EepromValueError
fn clone(&self) -> EepromValueError
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 EepromValueError
impl Debug for EepromValueError
source§impl Display for EepromValueError
impl Display for EepromValueError
source§impl Error for EepromValueError
impl Error for EepromValueError
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 Ord for EepromValueError
impl Ord for EepromValueError
source§fn cmp(&self, other: &EepromValueError) -> Ordering
fn cmp(&self, other: &EepromValueError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EepromValueError
impl PartialEq for EepromValueError
source§fn eq(&self, other: &EepromValueError) -> bool
fn eq(&self, other: &EepromValueError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EepromValueError
impl PartialOrd for EepromValueError
source§fn partial_cmp(&self, other: &EepromValueError) -> Option<Ordering>
fn partial_cmp(&self, other: &EepromValueError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for EepromValueError
impl Eq for EepromValueError
impl StructuralPartialEq for EepromValueError
Auto Trait Implementations§
impl RefUnwindSafe for EepromValueError
impl Send for EepromValueError
impl Sync for EepromValueError
impl Unpin for EepromValueError
impl UnwindSafe for EepromValueError
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