Enum at_cryptoauth::error::ErrorKind [−][src]
pub enum ErrorKind {
Show 20 variants
AssertFailure,
BadOpcode,
BadParam,
CommFail,
ConfigZoneLocked,
DataZoneLocked,
FuncFail,
InvalidId,
InvalidSize,
NotLocked,
ResyncWithWakeup,
RxCrcError,
RxFail,
SmallBuffer,
Timeout,
TooManyCommRetries,
TxFail,
Unimplemented,
UseFlagsConsumed,
WakeFailed,
}
Expand description
A list of specific error causes. Each kind is converted into Error
type.
Variants
AssertFailure
Code failed run-time consistency check
BadOpcode
opcode is not supported by the device
BadParam
bad argument (out of range, null pointer, etc.)
CommFail
Communication with device failed. Same as in hardware dependent modules.
ConfigZoneLocked
DataZoneLocked
FuncFail
Function could not execute due to incorrect condition / state.
InvalidId
invalid device id, id not set
InvalidSize
Count value is out of range or greater than buffer size.
NotLocked
required zone was not locked
ResyncWithWakeup
Re-synchronization succeeded, but only after generating a Wake-up
RxCrcError
Crc error in data received from device
RxFail
Timed out while waiting for response. Number of bytes received is > 0.
SmallBuffer
Supplied buffer is too small for data required
Timeout
Timed out while waiting for response. Number of bytes received is 0.
TooManyCommRetries
Device did not respond too many times during a transmission. Could indicate no device present.
TxFail
Failed to write
Unimplemented
Function or some element of it hasn’t been implemented yet
UseFlagsConsumed
Use flags on the device indicates its consumed fully
WakeFailed
Device did not respond to wake call as expected