Skip to main content

BuiltinNrc

Enum BuiltinNrc 

Source
#[repr(u8)]
pub enum BuiltinNrc {
Show 40 variants GeneralReject = 16, ServiceNotSupported = 17, SubFunctionNotSupported = 18, IncorrectMessageLengthOrInvalidFormat = 19, ResponseTooLong = 20, BusyRepeatRequest = 33, ConditionsNotCorrect = 34, RequestSequenceError = 36, NoResponseFromSubnetComponent = 37, FailurePreventsExecutionOfRequestedAction = 38, RequestOutOfRange = 49, SecurityAccessDenied = 51, InvalidKey = 53, ExceededNumberOfAttempts = 54, RequiredTimeDelayNotExpired = 55, UploadDownloadNotAccepted = 112, TransferDataSuspended = 113, GeneralProgrammingFailure = 114, WrongBlockSequenceCounter = 115, ResponsePending = 120, SubFunctionNotSupportedInActiveSession = 126, ServiceNotSupportedInActiveSession = 127, RpmTooHigh = 129, RpmTooLow = 130, EngineIsRunning = 131, EngineIsNotRunning = 132, EngineRunTimeTooLow = 133, TemperatureTooHigh = 134, TemperatureTooLow = 135, VehicleSpeedTooHigh = 136, VehicleSpeedToLow = 137, ThrottlePedalTooHigh = 138, ThrottlePedalTooLow = 139, TransmissionRangeNotInNeutral = 140, TransmissionRangeNotInGear = 141, BrakeSwitchesNotClosed = 143, ShifterLevelNotInPark = 144, TorqueConverterClutchLocked = 145, VoltageTooHigh = 146, VoltageTooLow = 147,
}
Expand description

A built-in NRC type covering all codes the server may emit.

Applications that do not need a custom error type may use this directly as type Error = BuiltinNrc in the ServerHandler impl.

Variants§

§

GeneralReject = 16

§

ServiceNotSupported = 17

§

SubFunctionNotSupported = 18

§

IncorrectMessageLengthOrInvalidFormat = 19

§

ResponseTooLong = 20

§

BusyRepeatRequest = 33

§

ConditionsNotCorrect = 34

§

RequestSequenceError = 36

§

NoResponseFromSubnetComponent = 37

§

FailurePreventsExecutionOfRequestedAction = 38

§

RequestOutOfRange = 49

§

SecurityAccessDenied = 51

§

InvalidKey = 53

§

ExceededNumberOfAttempts = 54

§

RequiredTimeDelayNotExpired = 55

§

UploadDownloadNotAccepted = 112

§

TransferDataSuspended = 113

§

GeneralProgrammingFailure = 114

§

WrongBlockSequenceCounter = 115

§

ResponsePending = 120

§

SubFunctionNotSupportedInActiveSession = 126

§

ServiceNotSupportedInActiveSession = 127

§

RpmTooHigh = 129

§

RpmTooLow = 130

§

EngineIsRunning = 131

§

EngineIsNotRunning = 132

§

EngineRunTimeTooLow = 133

§

TemperatureTooHigh = 134

§

TemperatureTooLow = 135

§

VehicleSpeedTooHigh = 136

§

VehicleSpeedToLow = 137

§

ThrottlePedalTooHigh = 138

§

ThrottlePedalTooLow = 139

§

TransmissionRangeNotInNeutral = 140

§

TransmissionRangeNotInGear = 141

§

BrakeSwitchesNotClosed = 143

§

ShifterLevelNotInPark = 144

§

TorqueConverterClutchLocked = 145

§

VoltageTooHigh = 146

§

VoltageTooLow = 147

Trait Implementations§

Source§

impl Clone for BuiltinNrc

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BuiltinNrc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for BuiltinNrc

Source§

impl From<BuiltinNrc> for u8

Source§

fn from(n: BuiltinNrc) -> u8

Converts to this type from the input type.
Source§

impl NrcError for BuiltinNrc

Source§

fn general_reject() -> Self

0x10 - general reject
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 response_too_long() -> Self

0x14 - response too long
Source§

fn busy_repeat_request() -> Self

0x21 - busy repeat request
Source§

fn conditions_not_correct() -> Self

0x22 - conditionsNotCorrect
Source§

fn request_sequence_error() -> Self

0x24 - requestSequenceError
Source§

fn no_response_from_subnet_component() -> Self

0x25 - no response from subnet component
Source§

fn failure_prevents_execution_of_requested_action() -> Self

0x26 - failure prevents execution of requested action
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
Source§

fn rpm_too_high() -> Self

0x81 - rpmTooHigh
Source§

fn rpm_too_low() -> Self

0x82 - rpmTooLow
Source§

fn engine_is_running() -> Self

0x83 - engineIsRunning
Source§

fn engine_is_not_running() -> Self

0x84 - engineIsNotRunning
Source§

fn engine_run_time_too_low() -> Self

0x85 - engineRunTimeTooLow
Source§

fn temperature_too_high() -> Self

0x86 - temperatureTooHigh
Source§

fn temperature_too_low() -> Self

0x87 - temperatureTooLow
Source§

fn vehicle_speed_too_high() -> Self

0x88 - vehicleSpeedTooHigh
Source§

fn vehicle_speed_too_low() -> Self

0x89 - vehicleSpeedTooLow
Source§

fn throttle_pedal_too_high() -> Self

0x8A - throttlePedalTooHigh
Source§

fn throttle_pedal_too_low() -> Self

0x8B - throttlePedalTooLow
Source§

fn transmission_range_not_in_neutral() -> Self

0x8C - transmissionRangeNotInNeutral
Source§

fn transmission_range_not_in_gear() -> Self

0x8D - transmissionRangeNotInGear
Source§

fn brake_switches_not_closed() -> Self

0x8F - brakeSwitchesNotClosed
Source§

fn shifter_level_not_in_park() -> Self

0x90 - shifterLevelNotInPark
Source§

fn torque_converter_clutch_locked() -> Self

0x91 - torqueConverterClutchLocked
Source§

fn voltage_too_high() -> Self

0x92 - voltageTooHigh
Source§

fn voltage_too_low() -> Self

0x93 - voltageTooLow
Source§

impl PartialEq for BuiltinNrc

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BuiltinNrc

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.