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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.