#[repr(u32)]pub enum FtStatus {
Show 19 variants
INVALID_HANDLE = 1,
DEVICE_NOT_FOUND = 2,
DEVICE_NOT_OPENED = 3,
IO_ERROR = 4,
INSUFFICIENT_RESOURCES = 5,
INVALID_PARAMETER = 6,
INVALID_BAUD_RATE = 7,
DEVICE_NOT_OPENED_FOR_ERASE = 8,
DEVICE_NOT_OPENED_FOR_WRITE = 9,
FAILED_TO_WRITE_DEVICE = 10,
EEPROM_READ_FAILED = 11,
EEPROM_WRITE_FAILED = 12,
EEPROM_ERASE_FAILED = 13,
EEPROM_NOT_PRESENT = 14,
EEPROM_NOT_PROGRAMMED = 15,
INVALID_ARGS = 16,
NOT_SUPPORTED = 17,
OTHER_ERROR = 18,
DEVICE_LIST_NOT_READY = 19,
}
Expand description
These are the C API error codes.
Unfortunately there are provided in the C API as self documenting, which they are for the most part.
This is the most common error in this crate, majority of functions and
methods will return this in the Result
.
This is also used in the TimeoutError
, and DeviceTypeError
enumerations.
Variants§
INVALID_HANDLE = 1
DEVICE_NOT_FOUND = 2
DEVICE_NOT_OPENED = 3
IO_ERROR = 4
INSUFFICIENT_RESOURCES = 5
INVALID_PARAMETER = 6
INVALID_BAUD_RATE = 7
DEVICE_NOT_OPENED_FOR_ERASE = 8
DEVICE_NOT_OPENED_FOR_WRITE = 9
FAILED_TO_WRITE_DEVICE = 10
EEPROM_READ_FAILED = 11
EEPROM_WRITE_FAILED = 12
EEPROM_ERASE_FAILED = 13
EEPROM_NOT_PRESENT = 14
EEPROM_NOT_PROGRAMMED = 15
INVALID_ARGS = 16
NOT_SUPPORTED = 17
OTHER_ERROR = 18
DEVICE_LIST_NOT_READY = 19
Trait Implementations§
source§impl Error for FtStatus
impl Error for FtStatus
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 From<FtStatus> for TimeoutError
impl From<FtStatus> for TimeoutError
source§fn from(value: FtStatus) -> TimeoutError
fn from(value: FtStatus) -> TimeoutError
Converts to this type from the input type.
source§impl PartialEq for FtStatus
impl PartialEq for FtStatus
impl Copy for FtStatus
impl Eq for FtStatus
impl StructuralPartialEq for FtStatus
Auto Trait Implementations§
impl RefUnwindSafe for FtStatus
impl Send for FtStatus
impl Sync for FtStatus
impl Unpin for FtStatus
impl UnwindSafe for FtStatus
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