ErrorCode

Enum ErrorCode 

Source
#[repr(u16)]
pub enum ErrorCode {
Show 207 variants Other = 0, DeviceBusy = 3, ConfigurationInProgress = 2, OperationalProblem = 25, DynamicCreationNotSupported = 4, NoObjectsOfSpecifiedType = 17, ObjectDeletionNotPermitted = 23, ObjectIdentifierAlreadyExists = 24, ReadAccessDenied = 27, UnknownObject = 31, UnsupportedObjectType = 36, CharacterSetNotSupported = 41, DatatypeNotSupported = 47, InconsistentSelectionCriterion = 8, InvalidArrayIndex = 42, InvalidDataType = 9, NotCovProperty = 44, OptionalFunctionalityNotSupported = 45, PropertyIsNotAnArray = 50, UnknownProperty = 32, ValueOutOfRange = 37, WriteAccessDenied = 40, NoSpaceForObject = 18, NoSpaceToAddListElement = 19, NoSpaceToWriteProperty = 20, AuthenticationFailed = 1, IncompatibleSecurityLevels = 6, InvalidOperatorName = 12, KeyGenerationError = 15, PasswordFailure = 26, SecurityNotSupported = 28, Timeout = 30, CovSubscriptionFailed = 43, DuplicateName = 48, DuplicateObjectId = 49, FileAccessDenied = 5, InconsistentParameters = 7, InvalidConfigurationData = 46, InvalidFileAccessMethod = 10, InvalidFileStartPosition = 11, InvalidParameterDataType = 13, InvalidTimeStamp = 14, MissingRequiredParameter = 16, PropertyIsNotAList = 22, ServiceRequestDenied = 29, UnknownVtClass = 34, UnknownVtSession = 35, NoVtSessionsAvailable = 21, VtSessionAlreadyClosed = 38, VtSessionTerminationFailure = 39, Reserved1 = 33, AbortBufferOverflow = 51, AbortInvalidApduInThisState = 52, AbortPreemptedByHigherPriorityTask = 53, AbortSegmentationNotSupported = 54, AbortProprietary = 55, AbortOther = 56, InvalidTag = 57, NetworkDown = 58, RejectBufferOverflow = 59, RejectInconsistentParameters = 60, RejectInvalidParameterDataType = 61, RejectInvalidTag = 62, RejectMissingRequiredParameter = 63, RejectParameterOutOfRange = 64, RejectTooManyArguments = 65, RejectUndefinedEnumeration = 66, RejectUnrecognizedService = 67, RejectProprietary = 68, RejectOther = 69, UnknownDevice = 70, UnknownRoute = 71, ValueNotInitialized = 72, InvalidEventState = 73, NoAlarmConfigured = 74, LogBufferFull = 75, LoggedValuePurged = 76, NoPropertySpecified = 77, NotConfiguredForTriggeredLogging = 78, UnknownSubscription = 79, ParameterOutOfRange = 80, ListElementNotFound = 81, Busy = 82, CommunicationDisabled = 83, Success = 84, AccessDenied = 85, BadDestinationAddress = 86, BadDestinationDeviceId = 87, BadSignature = 88, BadSourceAddress = 89, BadTimestamp = 90, CannotUseKey = 91, CannotVerifyMessageId = 92, CorrectKeyRevision = 93, DestinationDeviceIdRequired = 94, DuplicateMessage = 95, EncryptionNotConfigured = 96, EncryptionRequired = 97, IncorrectKey = 98, InvalidKeyData = 99, KeyUpdateInProgress = 100, MalformedMessage = 101, NotKeyServer = 102, SecurityNotConfigured = 103, SourceSecurityRequired = 104, TooManyKeys = 105, UnknownAuthenticationType = 106, UnknownKey = 107, UnknownKeyRevision = 108, UnknownSourceMessage = 109, NotRouterToDnet = 110, RouterBusy = 111, UnknownNetworkMessage = 112, MessageTooLong = 113, SecurityError = 114, AddressingError = 115, WriteBdtFailed = 116, ReadBdtFailed = 117, RegisterForeignDeviceFailed = 118, ReadFdtFailed = 119, DeleteFdtEntryFailed = 120, DistributeBroadcastFailed = 121, UnknownFileSize = 122, AbortApduTooLong = 123, AbortApplicationExceededReplyTime = 124, AbortOutOfResources = 125, AbortTsmTimeout = 126, AbortWindowSizeOutOfRange = 127, FileFull = 128, InconsistentConfiguration = 129, InconsistentObjectType = 130, InternalError = 131, NotConfigured = 132, OutOfMemory = 133, ValueTooLong = 134, AbortInsufficientSecurity = 135, AbortSecurityError = 136, DuplicateEntry = 137, InvalidValueInThisState = 138, InvalidOperationInThisState = 139, ListItemNotNumbered = 140, ListItemNotTimestamped = 141, InvalidDataEncoding = 142, BvlcFunctionUnknown = 143, BvlcProprietaryFunctionUnknown = 144, HeaderEncodingError = 145, HeaderNotUnderstood = 146, MessageIncomplete = 147, NotABacnetScHub = 148, PayloadExpected = 149, UnexpectedData = 150, NodeDuplicateVmac = 151, HttpUnexpectedResponseCode = 152, HttpNoUpgrade = 153, HttpResourceNotLocal = 154, HttpProxyAuthenticationFailed = 155, HttpResponseTimeout = 156, HttpResponseSyntaxError = 157, HttpResponseValueError = 158, HttpResponseMissingHeader = 159, HttpWebsocketHeaderError = 160, HttpUpgradeRequired = 161, HttpUpgradeError = 162, HttpTemporaryUnavailable = 163, HttpNotAServer = 164, HttpError = 165, WebsocketSchemeNotSupported = 166, WebsocketUnknownControlMessage = 167, WebsocketCloseError = 168, WebsocketClosedByPeer = 169, WebsocketEndpointLeaves = 170, WebsocketProtocolError = 171, WebsocketDataNotAccepted = 172, WebsocketClosedAbnormally = 173, WebsocketDataInconsistent = 174, WebsocketDataAgainstPolicy = 175, WebsocketFrameTooLong = 176, WebsocketExtensionMissing = 177, WebsocketRequestUnavailable = 178, WebsocketError = 179, TlsClientCertificateError = 180, TlsServerCertificateError = 181, TlsClientAuthenticationFailed = 182, TlsServerAuthenticationFailed = 183, TlsClientCertificateExpired = 184, TlsServerCertificateExpired = 185, TlsClientCertificateRevoked = 186, TlsServerCertificateRevoked = 187, TlsError = 188, DnsUnavailable = 189, DnsNameResolutionFailed = 190, DnsResolverFailure = 191, DnsError = 192, TcpConnectTimeout = 193, TcpConnectionRefused = 194, TcpClosedByLocal = 195, TcpClosedOther = 196, TcpError = 197, IpAddressNotReachable = 198, IpError = 199, CertificateExpired = 200, CertificateInvalid = 201, CertificateMalformed = 202, CertificateRevoked = 203, UnknownSecurityKey = 204, ReferencedPortInError = 205, Proprietary(u16),
}

Variants§

§

Other = 0

§

DeviceBusy = 3

§

ConfigurationInProgress = 2

§

OperationalProblem = 25

§

DynamicCreationNotSupported = 4

§

NoObjectsOfSpecifiedType = 17

§

ObjectDeletionNotPermitted = 23

§

ObjectIdentifierAlreadyExists = 24

§

ReadAccessDenied = 27

§

UnknownObject = 31

§

UnsupportedObjectType = 36

§

CharacterSetNotSupported = 41

§

DatatypeNotSupported = 47

§

InconsistentSelectionCriterion = 8

§

InvalidArrayIndex = 42

§

InvalidDataType = 9

§

NotCovProperty = 44

§

OptionalFunctionalityNotSupported = 45

§

PropertyIsNotAnArray = 50

§

UnknownProperty = 32

§

ValueOutOfRange = 37

§

WriteAccessDenied = 40

§

NoSpaceForObject = 18

§

NoSpaceToAddListElement = 19

§

NoSpaceToWriteProperty = 20

§

AuthenticationFailed = 1

§

IncompatibleSecurityLevels = 6

§

InvalidOperatorName = 12

§

KeyGenerationError = 15

§

PasswordFailure = 26

§

SecurityNotSupported = 28

§

Timeout = 30

§

CovSubscriptionFailed = 43

§

DuplicateName = 48

§

DuplicateObjectId = 49

§

FileAccessDenied = 5

§

InconsistentParameters = 7

§

InvalidConfigurationData = 46

§

InvalidFileAccessMethod = 10

§

InvalidFileStartPosition = 11

§

InvalidParameterDataType = 13

§

InvalidTimeStamp = 14

§

MissingRequiredParameter = 16

§

PropertyIsNotAList = 22

§

ServiceRequestDenied = 29

§

UnknownVtClass = 34

§

UnknownVtSession = 35

§

NoVtSessionsAvailable = 21

§

VtSessionAlreadyClosed = 38

§

VtSessionTerminationFailure = 39

§

Reserved1 = 33

§

AbortBufferOverflow = 51

§

AbortInvalidApduInThisState = 52

§

AbortPreemptedByHigherPriorityTask = 53

§

AbortSegmentationNotSupported = 54

§

AbortProprietary = 55

§

AbortOther = 56

§

InvalidTag = 57

§

NetworkDown = 58

§

RejectBufferOverflow = 59

§

RejectInconsistentParameters = 60

§

RejectInvalidParameterDataType = 61

§

RejectInvalidTag = 62

§

RejectMissingRequiredParameter = 63

§

RejectParameterOutOfRange = 64

§

RejectTooManyArguments = 65

§

RejectUndefinedEnumeration = 66

§

RejectUnrecognizedService = 67

§

RejectProprietary = 68

§

RejectOther = 69

§

UnknownDevice = 70

§

UnknownRoute = 71

§

ValueNotInitialized = 72

§

InvalidEventState = 73

§

NoAlarmConfigured = 74

§

LogBufferFull = 75

§

LoggedValuePurged = 76

§

NoPropertySpecified = 77

§

NotConfiguredForTriggeredLogging = 78

§

UnknownSubscription = 79

§

ParameterOutOfRange = 80

§

ListElementNotFound = 81

§

Busy = 82

§

CommunicationDisabled = 83

§

Success = 84

§

AccessDenied = 85

§

BadDestinationAddress = 86

§

BadDestinationDeviceId = 87

§

BadSignature = 88

§

BadSourceAddress = 89

§

BadTimestamp = 90

§

CannotUseKey = 91

§

CannotVerifyMessageId = 92

§

CorrectKeyRevision = 93

§

DestinationDeviceIdRequired = 94

§

DuplicateMessage = 95

§

EncryptionNotConfigured = 96

§

EncryptionRequired = 97

§

IncorrectKey = 98

§

InvalidKeyData = 99

§

KeyUpdateInProgress = 100

§

MalformedMessage = 101

§

NotKeyServer = 102

§

SecurityNotConfigured = 103

§

SourceSecurityRequired = 104

§

TooManyKeys = 105

§

UnknownAuthenticationType = 106

§

UnknownKey = 107

§

UnknownKeyRevision = 108

§

UnknownSourceMessage = 109

§

NotRouterToDnet = 110

§

RouterBusy = 111

§

UnknownNetworkMessage = 112

§

MessageTooLong = 113

§

SecurityError = 114

§

AddressingError = 115

§

WriteBdtFailed = 116

§

ReadBdtFailed = 117

§

RegisterForeignDeviceFailed = 118

§

ReadFdtFailed = 119

§

DeleteFdtEntryFailed = 120

§

DistributeBroadcastFailed = 121

§

UnknownFileSize = 122

§

AbortApduTooLong = 123

§

AbortApplicationExceededReplyTime = 124

§

AbortOutOfResources = 125

§

AbortTsmTimeout = 126

§

AbortWindowSizeOutOfRange = 127

§

FileFull = 128

§

InconsistentConfiguration = 129

§

InconsistentObjectType = 130

§

InternalError = 131

§

NotConfigured = 132

§

OutOfMemory = 133

§

ValueTooLong = 134

§

AbortInsufficientSecurity = 135

§

AbortSecurityError = 136

§

DuplicateEntry = 137

§

InvalidValueInThisState = 138

§

InvalidOperationInThisState = 139

§

ListItemNotNumbered = 140

§

ListItemNotTimestamped = 141

§

InvalidDataEncoding = 142

§

BvlcFunctionUnknown = 143

§

BvlcProprietaryFunctionUnknown = 144

§

HeaderEncodingError = 145

§

HeaderNotUnderstood = 146

§

MessageIncomplete = 147

§

NotABacnetScHub = 148

§

PayloadExpected = 149

§

UnexpectedData = 150

§

NodeDuplicateVmac = 151

§

HttpUnexpectedResponseCode = 152

§

HttpNoUpgrade = 153

§

HttpResourceNotLocal = 154

§

HttpProxyAuthenticationFailed = 155

§

HttpResponseTimeout = 156

§

HttpResponseSyntaxError = 157

§

HttpResponseValueError = 158

§

HttpResponseMissingHeader = 159

§

HttpWebsocketHeaderError = 160

§

HttpUpgradeRequired = 161

§

HttpUpgradeError = 162

§

HttpTemporaryUnavailable = 163

§

HttpNotAServer = 164

§

HttpError = 165

§

WebsocketSchemeNotSupported = 166

§

WebsocketUnknownControlMessage = 167

§

WebsocketCloseError = 168

§

WebsocketClosedByPeer = 169

§

WebsocketEndpointLeaves = 170

§

WebsocketProtocolError = 171

§

WebsocketDataNotAccepted = 172

§

WebsocketClosedAbnormally = 173

§

WebsocketDataInconsistent = 174

§

WebsocketDataAgainstPolicy = 175

§

WebsocketFrameTooLong = 176

§

WebsocketExtensionMissing = 177

§

WebsocketRequestUnavailable = 178

§

WebsocketError = 179

§

TlsClientCertificateError = 180

§

TlsServerCertificateError = 181

§

TlsClientAuthenticationFailed = 182

§

TlsServerAuthenticationFailed = 183

§

TlsClientCertificateExpired = 184

§

TlsServerCertificateExpired = 185

§

TlsClientCertificateRevoked = 186

§

TlsServerCertificateRevoked = 187

§

TlsError = 188

§

DnsUnavailable = 189

§

DnsNameResolutionFailed = 190

§

DnsResolverFailure = 191

§

DnsError = 192

§

TcpConnectTimeout = 193

§

TcpConnectionRefused = 194

§

TcpClosedByLocal = 195

§

TcpClosedOther = 196

§

TcpError = 197

§

IpAddressNotReachable = 198

§

IpError = 199

§

CertificateExpired = 200

§

CertificateInvalid = 201

§

CertificateMalformed = 202

§

CertificateRevoked = 203

§

UnknownSecurityKey = 204

§

ReferencedPortInError = 205

§

Proprietary(u16)

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> ErrorCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ErrorCode

Source§

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

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

impl TryFrom<u32> for ErrorCode

Source§

type Error = u32

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

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.