#[repr(C)]
pub enum KWP2000Error {
Show 22 variants GeneralReject, ServiceNotSupported, SubFunctionNotSupportedInvalidFormat, BusyRepeatRequest, ConditionsNotCorrectRequestSequenceError, RoutineNotComplete, RequestOutOfRange, SecurityAccessDenied, InvalidKey, ExceedNumberOfAttempts, RequiredTimeDelayNotExpired, DownloadNotAccepted, UploadNotAccepted, TransferSuspended, RequestCorrectlyReceivedResponsePending, ServiceNotSupportedInActiveSession, ReservedISO, ReservedDCX, DataDecompressionFailed, DataDecryptionFailed, EcuNotResponding, EcuAddressUnknown,
}
Expand description

KWP Error definitions

Variants

GeneralReject

ECU rejected the request for unknown reason

ServiceNotSupported

ECU Does not support the requested service

SubFunctionNotSupportedInvalidFormat

ECU does not support arguments provided, or message format is incorrect

BusyRepeatRequest

ECU is too busy to perform the request

ConditionsNotCorrectRequestSequenceError

ECU prerequisite conditions are not met

RoutineNotComplete

Deprecated in v2.2 of KWP2000. Requested results of a routine that is not completed.

RequestOutOfRange

The request message contains data which is out of range

SecurityAccessDenied

Security access is denied

InvalidKey

Invalid key provided to the ECU

ExceedNumberOfAttempts

Exceeded the number of incorrect security access attempts

RequiredTimeDelayNotExpired

Time period for requesting a new seed not expired

DownloadNotAccepted

ECU fault prevents data download

UploadNotAccepted

ECU fault prevents data upload

TransferSuspended

ECU fault has stopped the transfer of data

RequestCorrectlyReceivedResponsePending

The ECU has accepted the request, but cannot reply right now. If this error occurs, the Kwp2000DiagnosticServer will automatically stop sending tester present messages and will wait for the ECUs response. If after 2000ms, the ECU did not respond, then this error will get returned back to the function call.

ServiceNotSupportedInActiveSession

Requested service is not supported in the current diagnostic session mode

ReservedISO

Reserved for future ISO14230 use

ReservedDCX

Reserved for future use by DCX (Daimler)

DataDecompressionFailed

Data decompression failed

DataDecryptionFailed

Data decryption failed

EcuNotResponding

Sent by a gateway ECU. The requested ECU behind the gateway is not responding

EcuAddressUnknown

Sent by a gateway ECU. The requested ECU address is unknown

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

Converts to this type from the input type.

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.