#[repr(u8)]pub enum BuiltinNrc {
Show 17 variants
ServiceNotSupported = 17,
SubFunctionNotSupported = 18,
IncorrectMessageLengthOrInvalidFormat = 19,
ConditionsNotCorrect = 34,
RequestSequenceError = 36,
RequestOutOfRange = 49,
SecurityAccessDenied = 51,
InvalidKey = 53,
ExceededNumberOfAttempts = 54,
RequiredTimeDelayNotExpired = 55,
UploadDownloadNotAccepted = 112,
TransferDataSuspended = 113,
GeneralProgrammingFailure = 114,
WrongBlockSequenceCounter = 115,
ResponsePending = 120,
SubFunctionNotSupportedInActiveSession = 126,
ServiceNotSupportedInActiveSession = 127,
}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§
ServiceNotSupported = 17
SubFunctionNotSupported = 18
IncorrectMessageLengthOrInvalidFormat = 19
ConditionsNotCorrect = 34
RequestSequenceError = 36
RequestOutOfRange = 49
SecurityAccessDenied = 51
InvalidKey = 53
ExceededNumberOfAttempts = 54
RequiredTimeDelayNotExpired = 55
UploadDownloadNotAccepted = 112
TransferDataSuspended = 113
GeneralProgrammingFailure = 114
WrongBlockSequenceCounter = 115
ResponsePending = 120
SubFunctionNotSupportedInActiveSession = 126
ServiceNotSupportedInActiveSession = 127
Trait Implementations§
Source§impl Clone for BuiltinNrc
impl Clone for BuiltinNrc
Source§fn clone(&self) -> BuiltinNrc
fn clone(&self) -> BuiltinNrc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuiltinNrc
impl Debug for BuiltinNrc
impl Eq for BuiltinNrc
Source§impl From<BuiltinNrc> for u8
impl From<BuiltinNrc> for u8
Source§fn from(n: BuiltinNrc) -> u8
fn from(n: BuiltinNrc) -> u8
Converts to this type from the input type.
Source§impl NrcError for BuiltinNrc
impl NrcError for BuiltinNrc
Source§fn service_not_supported() -> Self
fn service_not_supported() -> Self
0x11 - serviceNotSupported
Source§fn sub_function_not_supported() -> Self
fn sub_function_not_supported() -> Self
0x12 - subFunctionNotSupported
Source§fn incorrect_message_length_or_invalid_format() -> Self
fn incorrect_message_length_or_invalid_format() -> Self
0x13 - incorrectMessageLengthOrInvalidFormat
Source§fn conditions_not_correct() -> Self
fn conditions_not_correct() -> Self
0x22 - conditionsNotCorrect
Source§fn request_sequence_error() -> Self
fn request_sequence_error() -> Self
0x24 - requestSequenceError
Source§fn request_out_of_range() -> Self
fn request_out_of_range() -> Self
0x31 - requestOutOfRange
Source§fn security_access_denied() -> Self
fn security_access_denied() -> Self
0x33 - securityAccessDenied
Source§fn invalid_key() -> Self
fn invalid_key() -> Self
0x35 - invalidKey
Source§fn exceeded_number_of_attempts() -> Self
fn exceeded_number_of_attempts() -> Self
0x36 - exceededNumberOfAttempts
Source§fn required_time_delay_not_expired() -> Self
fn required_time_delay_not_expired() -> Self
0x37 - requiredTimeDelayNotExpired
Source§fn upload_download_not_accepted() -> Self
fn upload_download_not_accepted() -> Self
0x70 - uploadDownloadNotAccepted
Source§fn transfer_data_suspended() -> Self
fn transfer_data_suspended() -> Self
0x71 - transferDataSuspended
Source§fn general_programming_failure() -> Self
fn general_programming_failure() -> Self
0x72 - generalProgrammingFailure
Source§fn wrong_block_sequence_counter() -> Self
fn wrong_block_sequence_counter() -> Self
0x73 - wrongBlockSequenceCounter
Source§fn response_pending() -> Self
fn response_pending() -> Self
0x78 - requestCorrectlyReceivedResponsePending
Source§fn sub_function_not_supported_in_active_session() -> Self
fn sub_function_not_supported_in_active_session() -> Self
0x7E - subFunctionNotSupportedInActiveSession
Source§fn service_not_supported_in_active_session() -> Self
fn service_not_supported_in_active_session() -> Self
0x7F - serviceNotSupportedInActiveSession
Source§impl PartialEq for BuiltinNrc
impl PartialEq for BuiltinNrc
impl StructuralPartialEq for BuiltinNrc
Auto Trait Implementations§
impl Freeze for BuiltinNrc
impl RefUnwindSafe for BuiltinNrc
impl Send for BuiltinNrc
impl Sync for BuiltinNrc
impl Unpin for BuiltinNrc
impl UnsafeUnpin for BuiltinNrc
impl UnwindSafe for BuiltinNrc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more