Skip to main content

NrcError

Trait NrcError 

Source
pub trait NrcError: Into<u8> + Debug {
Show 17 methods // Required methods fn service_not_supported() -> Self; fn sub_function_not_supported() -> Self; fn incorrect_message_length_or_invalid_format() -> Self; fn conditions_not_correct() -> Self; fn request_sequence_error() -> Self; fn request_out_of_range() -> Self; fn security_access_denied() -> Self; fn invalid_key() -> Self; fn exceeded_number_of_attempts() -> Self; fn required_time_delay_not_expired() -> Self; fn upload_download_not_accepted() -> Self; fn transfer_data_suspended() -> Self; fn general_programming_failure() -> Self; fn wrong_block_sequence_counter() -> Self; fn response_pending() -> Self; fn sub_function_not_supported_in_active_session() -> Self; fn service_not_supported_in_active_session() -> Self;
}
Expand description

A trait for application error types that can be converted into UDS Negative Response Codes (NRCs).

The server state machine uses this to construct NRC responses without knowing the application’s error type internals. The application defines the mapping via Into<u8>.

Required Methods§

Source

fn service_not_supported() -> Self

0x11 - serviceNotSupported

Source

fn sub_function_not_supported() -> Self

0x12 - subFunctionNotSupported

Source

fn incorrect_message_length_or_invalid_format() -> Self

0x13 - incorrectMessageLengthOrInvalidFormat

Source

fn conditions_not_correct() -> Self

0x22 - conditionsNotCorrect

Source

fn request_sequence_error() -> Self

0x24 - requestSequenceError

Source

fn request_out_of_range() -> Self

0x31 - requestOutOfRange

Source

fn security_access_denied() -> Self

0x33 - securityAccessDenied

Source

fn invalid_key() -> Self

0x35 - invalidKey

Source

fn exceeded_number_of_attempts() -> Self

0x36 - exceededNumberOfAttempts

Source

fn required_time_delay_not_expired() -> Self

0x37 - requiredTimeDelayNotExpired

Source

fn upload_download_not_accepted() -> Self

0x70 - uploadDownloadNotAccepted

Source

fn transfer_data_suspended() -> Self

0x71 - transferDataSuspended

Source

fn general_programming_failure() -> Self

0x72 - generalProgrammingFailure

Source

fn wrong_block_sequence_counter() -> Self

0x73 - wrongBlockSequenceCounter

Source

fn response_pending() -> Self

0x78 - requestCorrectlyReceivedResponsePending

Source

fn sub_function_not_supported_in_active_session() -> Self

0x7E - subFunctionNotSupportedInActiveSession

Source

fn service_not_supported_in_active_session() -> Self

0x7F - serviceNotSupportedInActiveSession

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§