pub enum D3xxError {
Show 36 variants
InvalidHandle,
DeviceNotFound,
DeviceNotOpened,
IoError,
InsufficientResources,
InvalidParameter,
InvalidBaudRate,
DeviceNotOpenedForErase,
DeviceNotOpenedForWrite,
FailedToWriteDevice,
EEPROMReadFailed,
EEPROMWriteFailed,
EEPROMEraseFailed,
EEPROMNotPresent,
EEPROMNotProgrammed,
InvalidArgs,
NotSupported,
NoMoreItems,
Timeout,
OperationAborted,
ReservedPipe,
InvalidControlRequestDirection,
InvalidControLRequestType,
IoPending,
IoIncomplete,
HandleEof,
Busy,
NoSystemResources,
DeviceListNotReady,
DeviceNotConnected,
IncorrectDevicePath,
OtherError,
LibraryAccessFailed(Error),
UnpackingFailed(Error),
LibraryAlreadyLoaded,
LibraryNotLoaded,
}
Expand description
Error type corresponding to possible [FT_STATUS
] errors
Variants§
InvalidHandle
DeviceNotFound
DeviceNotOpened
IoError
InsufficientResources
InvalidParameter
InvalidBaudRate
DeviceNotOpenedForErase
DeviceNotOpenedForWrite
FailedToWriteDevice
EEPROMReadFailed
EEPROMWriteFailed
EEPROMEraseFailed
EEPROMNotPresent
EEPROMNotProgrammed
InvalidArgs
NotSupported
NoMoreItems
Timeout
OperationAborted
ReservedPipe
InvalidControlRequestDirection
InvalidControLRequestType
IoPending
IoIncomplete
HandleEof
Busy
NoSystemResources
DeviceListNotReady
DeviceNotConnected
IncorrectDevicePath
OtherError
LibraryAccessFailed(Error)
UnpackingFailed(Error)
LibraryAlreadyLoaded
LibraryNotLoaded
Implementations§
Trait Implementations§
source§impl Error for D3xxError
impl Error for D3xxError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for D3xxError
impl Send for D3xxError
impl Sync for D3xxError
impl Unpin for D3xxError
impl !UnwindSafe for D3xxError
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