[−][src]Struct libftd2xx::EepromValueError
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]
fn clone(&self) -> EepromValueError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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 Ord for EepromValueError
[src]
fn cmp(&self, other: &EepromValueError) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EepromValueError> for EepromValueError
[src]
fn eq(&self, other: &EepromValueError) -> bool
[src]
fn ne(&self, other: &EepromValueError) -> bool
[src]
impl PartialOrd<EepromValueError> for EepromValueError
[src]
fn partial_cmp(&self, other: &EepromValueError) -> Option<Ordering>
[src]
fn lt(&self, other: &EepromValueError) -> bool
[src]
fn le(&self, other: &EepromValueError) -> bool
[src]
fn gt(&self, other: &EepromValueError) -> bool
[src]
fn ge(&self, other: &EepromValueError) -> bool
[src]
impl StructuralEq for EepromValueError
[src]
impl StructuralPartialEq for EepromValueError
[src]
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
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>,