Enum libftd2xx::DeviceTypeError
source · pub enum DeviceTypeError {
FtStatus(FtStatus),
DeviceType {
expected: DeviceType,
detected: DeviceType,
},
}
Expand description
Device type errors.
This is the error used by TryFrom
trait for FTDI devices.
Variants§
Trait Implementations§
source§impl Clone for DeviceTypeError
impl Clone for DeviceTypeError
source§fn clone(&self) -> DeviceTypeError
fn clone(&self) -> DeviceTypeError
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 DeviceTypeError
impl Debug for DeviceTypeError
source§impl Display for DeviceTypeError
impl Display for DeviceTypeError
source§impl Error for DeviceTypeError
impl Error for DeviceTypeError
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 From<FtStatus> for DeviceTypeError
impl From<FtStatus> for DeviceTypeError
source§fn from(value: FtStatus) -> DeviceTypeError
fn from(value: FtStatus) -> DeviceTypeError
Converts to this type from the input type.
source§impl PartialEq for DeviceTypeError
impl PartialEq for DeviceTypeError
source§fn eq(&self, other: &DeviceTypeError) -> bool
fn eq(&self, other: &DeviceTypeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DeviceTypeError
impl Eq for DeviceTypeError
impl StructuralPartialEq for DeviceTypeError
Auto Trait Implementations§
impl RefUnwindSafe for DeviceTypeError
impl Send for DeviceTypeError
impl Sync for DeviceTypeError
impl Unpin for DeviceTypeError
impl UnwindSafe for DeviceTypeError
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