Skip to main content

ErrorCode

Struct ErrorCode 

Source
pub struct ErrorCode(/* private fields */);
Expand description

BACnet error codes (Clause 18).

Implementations§

Source§

impl ErrorCode

Source

pub const OTHER: Self

Wire value 0.

Source

pub const AUTHENTICATION_FAILED: Self

Wire value 1.

Source

pub const CONFIGURATION_IN_PROGRESS: Self

Wire value 2.

Source

pub const DEVICE_BUSY: Self

Wire value 3.

Source

pub const DYNAMIC_CREATION_NOT_SUPPORTED: Self

Wire value 4.

Source

pub const FILE_ACCESS_DENIED: Self

Wire value 5.

Source

pub const INCOMPATIBLE_SECURITY_LEVELS: Self

Wire value 6.

Source

pub const INCONSISTENT_PARAMETERS: Self

Wire value 7.

Source

pub const INCONSISTENT_SELECTION_CRITERION: Self

Wire value 8.

Source

pub const INVALID_DATA_TYPE: Self

Wire value 9.

Source

pub const INVALID_FILE_ACCESS_METHOD: Self

Wire value 10.

Source

pub const INVALID_FILE_START_POSITION: Self

Wire value 11.

Source

pub const INVALID_OPERATOR_NAME: Self

Wire value 12.

Source

pub const INVALID_PARAMETER_DATA_TYPE: Self

Wire value 13.

Source

pub const INVALID_TIME_STAMP: Self

Wire value 14.

Source

pub const KEY_GENERATION_ERROR: Self

Wire value 15.

Source

pub const MISSING_REQUIRED_PARAMETER: Self

Wire value 16.

Source

pub const NO_OBJECTS_OF_SPECIFIED_TYPE: Self

Wire value 17.

Source

pub const NO_SPACE_FOR_OBJECT: Self

Wire value 18.

Source

pub const NO_SPACE_TO_ADD_LIST_ELEMENT: Self

Wire value 19.

Source

pub const NO_SPACE_TO_WRITE_PROPERTY: Self

Wire value 20.

Source

pub const NO_VT_SESSIONS_AVAILABLE: Self

Wire value 21.

Source

pub const PROPERTY_IS_NOT_A_LIST: Self

Wire value 22.

Source

pub const OBJECT_DELETION_NOT_PERMITTED: Self

Wire value 23.

Source

pub const OBJECT_IDENTIFIER_ALREADY_EXISTS: Self

Wire value 24.

Source

pub const OPERATIONAL_PROBLEM: Self

Wire value 25.

Source

pub const PASSWORD_FAILURE: Self

Wire value 26.

Source

pub const READ_ACCESS_DENIED: Self

Wire value 27.

Source

pub const SECURITY_NOT_SUPPORTED: Self

Wire value 28.

Source

pub const SERVICE_REQUEST_DENIED: Self

Wire value 29.

Source

pub const TIMEOUT: Self

Wire value 30.

Source

pub const UNKNOWN_OBJECT: Self

Wire value 31.

Source

pub const UNKNOWN_PROPERTY: Self

Wire value 32.

Source

pub const UNKNOWN_VT_CLASS: Self

Wire value 34.

Source

pub const UNKNOWN_VT_SESSION: Self

Wire value 35.

Source

pub const UNSUPPORTED_OBJECT_TYPE: Self

Wire value 36.

Source

pub const VALUE_OUT_OF_RANGE: Self

Wire value 37.

Source

pub const VT_SESSION_ALREADY_CLOSED: Self

Wire value 38.

Source

pub const VT_SESSION_TERMINATION_FAILURE: Self

Wire value 39.

Source

pub const WRITE_ACCESS_DENIED: Self

Wire value 40.

Source

pub const CHARACTER_SET_NOT_SUPPORTED: Self

Wire value 41.

Source

pub const INVALID_ARRAY_INDEX: Self

Wire value 42.

Source

pub const COV_SUBSCRIPTION_FAILED: Self

Wire value 43.

Source

pub const NOT_COV_PROPERTY: Self

Wire value 44.

Source

pub const OPTIONAL_FUNCTIONALITY_NOT_SUPPORTED: Self

Wire value 45.

Source

pub const INVALID_CONFIGURATION_DATA: Self

Wire value 46.

Source

pub const DATATYPE_NOT_SUPPORTED: Self

Wire value 47.

Source

pub const DUPLICATE_NAME: Self

Wire value 48.

Source

pub const DUPLICATE_OBJECT_ID: Self

Wire value 49.

Source

pub const PROPERTY_IS_NOT_AN_ARRAY: Self

Wire value 50.

Source

pub const ABORT_BUFFER_OVERFLOW: Self

Wire value 51.

Source

pub const ABORT_INVALID_APDU_IN_THIS_STATE: Self

Wire value 52.

Source

pub const ABORT_PREEMPTED_BY_HIGHER_PRIORITY_TASK: Self

Wire value 53.

Source

pub const ABORT_SEGMENTATION_NOT_SUPPORTED: Self

Wire value 54.

Source

pub const ABORT_PROPRIETARY: Self

Wire value 55.

Source

pub const ABORT_OTHER: Self

Wire value 56.

Source

pub const INVALID_TAG: Self

Wire value 57.

Source

pub const NETWORK_DOWN: Self

Wire value 58.

Source

pub const REJECT_BUFFER_OVERFLOW: Self

Wire value 59.

Source

pub const REJECT_INCONSISTENT_PARAMETERS: Self

Wire value 60.

Source

pub const REJECT_INVALID_PARAMETER_DATA_TYPE: Self

Wire value 61.

Source

pub const REJECT_INVALID_TAG: Self

Wire value 62.

Source

pub const REJECT_MISSING_REQUIRED_PARAMETER: Self

Wire value 63.

Source

pub const REJECT_PARAMETER_OUT_OF_RANGE: Self

Wire value 64.

Source

pub const REJECT_TOO_MANY_ARGUMENTS: Self

Wire value 65.

Source

pub const REJECT_UNDEFINED_ENUMERATION: Self

Wire value 66.

Source

pub const REJECT_UNRECOGNIZED_SERVICE: Self

Wire value 67.

Source

pub const REJECT_PROPRIETARY: Self

Wire value 68.

Source

pub const REJECT_OTHER: Self

Wire value 69.

Source

pub const UNKNOWN_DEVICE: Self

Wire value 70.

Source

pub const UNKNOWN_ROUTE: Self

Wire value 71.

Source

pub const VALUE_NOT_INITIALIZED: Self

Wire value 72.

Source

pub const INVALID_EVENT_STATE: Self

Wire value 73.

Source

pub const NO_ALARM_CONFIGURED: Self

Wire value 74.

Source

pub const LOG_BUFFER_FULL: Self

Wire value 75.

Source

pub const LOGGED_VALUE_PURGED: Self

Wire value 76.

Source

pub const NO_PROPERTY_SPECIFIED: Self

Wire value 77.

Source

pub const NOT_CONFIGURED_FOR_TRIGGERED_LOGGING: Self

Wire value 78.

Source

pub const UNKNOWN_SUBSCRIPTION: Self

Wire value 79.

Source

pub const PARAMETER_OUT_OF_RANGE: Self

Wire value 80.

Source

pub const LIST_ELEMENT_NOT_FOUND: Self

Wire value 81.

Source

pub const BUSY: Self

Wire value 82.

Source

pub const COMMUNICATION_DISABLED: Self

Wire value 83.

Source

pub const SUCCESS: Self

Wire value 84.

Source

pub const ACCESS_DENIED: Self

Wire value 85.

Source

pub const BAD_DESTINATION_ADDRESS: Self

Wire value 86.

Source

pub const BAD_DESTINATION_DEVICE_ID: Self

Wire value 87.

Source

pub const BAD_SIGNATURE: Self

Wire value 88.

Source

pub const BAD_SOURCE_ADDRESS: Self

Wire value 89.

Source

pub const BAD_TIMESTAMP: Self

Wire value 90.

Source

pub const CANNOT_USE_KEY: Self

Wire value 91.

Source

pub const CANNOT_VERIFY_MESSAGE_ID: Self

Wire value 92.

Source

pub const CORRECT_KEY_REVISION: Self

Wire value 93.

Source

pub const DESTINATION_DEVICE_ID_REQUIRED: Self

Wire value 94.

Source

pub const DUPLICATE_MESSAGE: Self

Wire value 95.

Source

pub const ENCRYPTION_NOT_CONFIGURED: Self

Wire value 96.

Source

pub const ENCRYPTION_REQUIRED: Self

Wire value 97.

Source

pub const INCORRECT_KEY: Self

Wire value 98.

Source

pub const INVALID_KEY_DATA: Self

Wire value 99.

Source

pub const KEY_UPDATE_IN_PROGRESS: Self

Wire value 100.

Source

pub const MALFORMED_MESSAGE: Self

Wire value 101.

Source

pub const NOT_KEY_SERVER: Self

Wire value 102.

Source

pub const SECURITY_NOT_CONFIGURED: Self

Wire value 103.

Source

pub const SOURCE_SECURITY_REQUIRED: Self

Wire value 104.

Source

pub const TOO_MANY_KEYS: Self

Wire value 105.

Source

pub const UNKNOWN_AUTHENTICATION_TYPE: Self

Wire value 106.

Source

pub const UNKNOWN_KEY: Self

Wire value 107.

Source

pub const UNKNOWN_KEY_REVISION: Self

Wire value 108.

Source

pub const UNKNOWN_SOURCE_MESSAGE: Self

Wire value 109.

Source

pub const NOT_ROUTER_TO_DNET: Self

Wire value 110.

Source

pub const ROUTER_BUSY: Self

Wire value 111.

Source

pub const UNKNOWN_NETWORK_MESSAGE: Self

Wire value 112.

Source

pub const MESSAGE_TOO_LONG: Self

Wire value 113.

Source

pub const SECURITY_ERROR: Self

Wire value 114.

Source

pub const ADDRESSING_ERROR: Self

Wire value 115.

Source

pub const WRITE_BDT_FAILED: Self

Wire value 116.

Source

pub const READ_BDT_FAILED: Self

Wire value 117.

Source

pub const REGISTER_FOREIGN_DEVICE_FAILED: Self

Wire value 118.

Source

pub const READ_FDT_FAILED: Self

Wire value 119.

Source

pub const DELETE_FDT_ENTRY_FAILED: Self

Wire value 120.

Source

pub const DISTRIBUTE_BROADCAST_FAILED: Self

Wire value 121.

Source

pub const UNKNOWN_FILE_SIZE: Self

Wire value 122.

Source

pub const ABORT_APDU_TOO_LONG: Self

Wire value 123.

Source

pub const ABORT_APPLICATION_EXCEEDED_REPLY_TIME: Self

Wire value 124.

Source

pub const ABORT_OUT_OF_RESOURCES: Self

Wire value 125.

Source

pub const ABORT_TSM_TIMEOUT: Self

Wire value 126.

Source

pub const ABORT_WINDOW_SIZE_OUT_OF_RANGE: Self

Wire value 127.

Source

pub const FILE_FULL: Self

Wire value 128.

Source

pub const INCONSISTENT_CONFIGURATION: Self

Wire value 129.

Source

pub const INCONSISTENT_OBJECT_TYPE: Self

Wire value 130.

Source

pub const INTERNAL_ERROR: Self

Wire value 131.

Source

pub const NOT_CONFIGURED: Self

Wire value 132.

Source

pub const OUT_OF_MEMORY: Self

Wire value 133.

Source

pub const VALUE_TOO_LONG: Self

Wire value 134.

Source

pub const ABORT_INSUFFICIENT_SECURITY: Self

Wire value 135.

Source

pub const ABORT_SECURITY_ERROR: Self

Wire value 136.

Source

pub const DUPLICATE_ENTRY: Self

Wire value 137.

Source

pub const INVALID_VALUE_IN_THIS_STATE: Self

Wire value 138.

Source

pub const INVALID_OPERATION_IN_THIS_STATE: Self

Wire value 139.

Source

pub const LIST_ITEM_NOT_NUMBERED: Self

Wire value 140.

Source

pub const LIST_ITEM_NOT_TIMESTAMPED: Self

Wire value 141.

Source

pub const INVALID_DATA_ENCODING: Self

Wire value 142.

Source

pub const BVLC_FUNCTION_UNKNOWN: Self

Wire value 143.

Source

pub const BVLC_PROPRIETARY_FUNCTION_UNKNOWN: Self

Wire value 144.

Source

pub const HEADER_ENCODING_ERROR: Self

Wire value 145.

Source

pub const HEADER_NOT_UNDERSTOOD: Self

Wire value 146.

Source

pub const MESSAGE_INCOMPLETE: Self

Wire value 147.

Source

pub const NOT_A_BACNET_SC_HUB: Self

Wire value 148.

Source

pub const PAYLOAD_EXPECTED: Self

Wire value 149.

Source

pub const UNEXPECTED_DATA: Self

Wire value 150.

Source

pub const NODE_DUPLICATE_VMAC: Self

Wire value 151.

Source

pub const ALL_NAMED: &[(&str, Self)]

All named constants as (name, value) pairs.

Source

pub const fn from_raw(value: u16) -> Self

Create from a raw wire value.

Source

pub const fn to_raw(self) -> u16

Return the raw wire value.

Trait Implementations§

Source§

impl Clone for ErrorCode

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 Copy for ErrorCode

Source§

impl Debug for ErrorCode

Source§

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

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

impl Display for ErrorCode

Source§

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

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

impl Eq for ErrorCode

Source§

impl FromStr for ErrorCode

Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parse a symbolic constant name, ignoring _/- separators and ASCII case, so every common spelling of a name is accepted (ANALOG_INPUT, analog-input, AnalogInput, analogInput, …).

Raw numeric values are not accepted; use from_raw for those.

Source§

type Err = ParseEnumError

The associated error which can be returned from parsing.
Source§

impl Hash for ErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ErrorCode

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 ErrorCode

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.