pub struct StatusCode(/* private fields */);Expand description
OPC UA Status Code.
A status code is a 32-bit value composed of:
- Bits 31-30: Severity (00=Good, 01=Uncertain, 10=Bad)
- Bits 29-16: Sub-code
- Bits 15-0: Info bits
§Examples
use mabi_opcua::types::StatusCode;
let status = StatusCode::GOOD;
assert!(status.is_good());
let status = StatusCode::BAD_NODE_ID_UNKNOWN;
assert!(status.is_bad());Implementations§
Source§impl StatusCode
impl StatusCode
Sourcepub const GOOD_LOCAL_OVERRIDE: Self
pub const GOOD_LOCAL_OVERRIDE: Self
The data source is a local value.
Sourcepub const GOOD_CLAMPED: Self
pub const GOOD_CLAMPED: Self
The operation completed but resulted in clamped values.
Sourcepub const GOOD_NO_DATA: Self
pub const GOOD_NO_DATA: Self
No data exists for the requested time range.
Sourcepub const GOOD_MORE_DATA: Self
pub const GOOD_MORE_DATA: Self
More data is available for the requested bounds.
Sourcepub const GOOD_SUBSCRIPTION_TRANSFERRED: Self
pub const GOOD_SUBSCRIPTION_TRANSFERRED: Self
The subscription was transferred.
Sourcepub const GOOD_REFRESH_IN_PROGRESS: Self
pub const GOOD_REFRESH_IN_PROGRESS: Self
Refresh in progress.
Sourcepub const GOOD_REFRESH_FINISHED: Self
pub const GOOD_REFRESH_FINISHED: Self
Refresh finished.
Sourcepub const UNCERTAIN_LAST_USABLE_VALUE: Self
pub const UNCERTAIN_LAST_USABLE_VALUE: Self
The data value is from a different source.
Sourcepub const UNCERTAIN_SENSOR_NOT_ACCURATE: Self
pub const UNCERTAIN_SENSOR_NOT_ACCURATE: Self
Sensor failure.
Sourcepub const UNCERTAIN_SUB_NORMAL: Self
pub const UNCERTAIN_SUB_NORMAL: Self
Sub-normal operation.
Sourcepub const UNCERTAIN_INITIAL_VALUE: Self
pub const UNCERTAIN_INITIAL_VALUE: Self
Initial value.
Sourcepub const BAD_UNEXPECTED_ERROR: Self
pub const BAD_UNEXPECTED_ERROR: Self
An unexpected error occurred.
Sourcepub const BAD_INTERNAL_ERROR: Self
pub const BAD_INTERNAL_ERROR: Self
An internal error occurred.
Sourcepub const BAD_OUT_OF_MEMORY: Self
pub const BAD_OUT_OF_MEMORY: Self
Not enough memory.
Sourcepub const BAD_INVALID_ARGUMENT: Self
pub const BAD_INVALID_ARGUMENT: Self
Invalid argument.
Sourcepub const BAD_RESOURCE_UNAVAILABLE: Self
pub const BAD_RESOURCE_UNAVAILABLE: Self
Resource not available.
Sourcepub const BAD_COMMUNICATION_ERROR: Self
pub const BAD_COMMUNICATION_ERROR: Self
Communication error.
Sourcepub const BAD_ENCODING_ERROR: Self
pub const BAD_ENCODING_ERROR: Self
Encoding error.
Sourcepub const BAD_DECODING_ERROR: Self
pub const BAD_DECODING_ERROR: Self
Decoding error.
Sourcepub const BAD_TIMEOUT: Self
pub const BAD_TIMEOUT: Self
Timeout occurred.
Sourcepub const BAD_SERVICE_UNSUPPORTED: Self
pub const BAD_SERVICE_UNSUPPORTED: Self
Service not supported.
Sourcepub const BAD_SHUTDOWN: Self
pub const BAD_SHUTDOWN: Self
Operation was shut down.
Sourcepub const BAD_SERVER_NOT_CONNECTED: Self
pub const BAD_SERVER_NOT_CONNECTED: Self
Server not connected.
Sourcepub const BAD_SERVER_HALTED: Self
pub const BAD_SERVER_HALTED: Self
Server halted.
Sourcepub const BAD_NOTHING_TO_DO: Self
pub const BAD_NOTHING_TO_DO: Self
Nothing to do.
Sourcepub const BAD_TOO_MANY_OPERATIONS: Self
pub const BAD_TOO_MANY_OPERATIONS: Self
Too many operations.
Sourcepub const BAD_DATA_TYPE_MISMATCH: Self
pub const BAD_DATA_TYPE_MISMATCH: Self
Data type mismatch.
Sourcepub const BAD_NODE_ID_UNKNOWN: Self
pub const BAD_NODE_ID_UNKNOWN: Self
Node ID unknown.
Sourcepub const BAD_NODE_ID_INVALID: Self
pub const BAD_NODE_ID_INVALID: Self
Node ID invalid.
Sourcepub const BAD_ATTRIBUTE_ID_INVALID: Self
pub const BAD_ATTRIBUTE_ID_INVALID: Self
Attribute ID invalid.
Sourcepub const BAD_INDEX_RANGE_INVALID: Self
pub const BAD_INDEX_RANGE_INVALID: Self
Index range invalid.
Sourcepub const BAD_INDEX_RANGE_NO_DATA: Self
pub const BAD_INDEX_RANGE_NO_DATA: Self
Index range out of bounds.
Sourcepub const BAD_DATA_ENCODING_INVALID: Self
pub const BAD_DATA_ENCODING_INVALID: Self
Data encoding invalid.
Sourcepub const BAD_DATA_ENCODING_UNSUPPORTED: Self
pub const BAD_DATA_ENCODING_UNSUPPORTED: Self
Data encoding unsupported.
Sourcepub const BAD_NOT_READABLE: Self
pub const BAD_NOT_READABLE: Self
Not readable.
Sourcepub const BAD_NOT_WRITABLE: Self
pub const BAD_NOT_WRITABLE: Self
Not writable.
Sourcepub const BAD_OUT_OF_RANGE: Self
pub const BAD_OUT_OF_RANGE: Self
Out of range.
Sourcepub const BAD_NOT_SUPPORTED: Self
pub const BAD_NOT_SUPPORTED: Self
Not supported.
Sourcepub const BAD_NOT_FOUND: Self
pub const BAD_NOT_FOUND: Self
Not found.
Sourcepub const BAD_OBJECT_DELETED: Self
pub const BAD_OBJECT_DELETED: Self
Object deleted.
Sourcepub const BAD_NOT_IMPLEMENTED: Self
pub const BAD_NOT_IMPLEMENTED: Self
Not implemented.
Sourcepub const BAD_MONITORING_MODE_INVALID: Self
pub const BAD_MONITORING_MODE_INVALID: Self
Monitoring mode invalid.
Sourcepub const BAD_MONITORED_ITEM_ID_INVALID: Self
pub const BAD_MONITORED_ITEM_ID_INVALID: Self
Monitored item ID invalid.
Sourcepub const BAD_MONITORED_ITEM_FILTER_INVALID: Self
pub const BAD_MONITORED_ITEM_FILTER_INVALID: Self
Monitored item filter invalid.
Sourcepub const BAD_MONITORED_ITEM_FILTER_UNSUPPORTED: Self
pub const BAD_MONITORED_ITEM_FILTER_UNSUPPORTED: Self
Monitored item filter unsupported.
Sourcepub const BAD_FILTER_NOT_ALLOWED: Self
pub const BAD_FILTER_NOT_ALLOWED: Self
Filter not allowed.
Sourcepub const BAD_STRUCTURE_MISSING: Self
pub const BAD_STRUCTURE_MISSING: Self
Structure missing.
Sourcepub const BAD_EVENT_FILTER_INVALID: Self
pub const BAD_EVENT_FILTER_INVALID: Self
Event filter invalid.
Sourcepub const BAD_CONTENT_FILTER_INVALID: Self
pub const BAD_CONTENT_FILTER_INVALID: Self
Content filter invalid.
Sourcepub const BAD_SUBSCRIPTION_ID_INVALID: Self
pub const BAD_SUBSCRIPTION_ID_INVALID: Self
Subscription ID invalid.
Sourcepub const BAD_SEQUENCE_NUMBER_UNKNOWN: Self
pub const BAD_SEQUENCE_NUMBER_UNKNOWN: Self
Sequence number unknown.
Sourcepub const BAD_MESSAGE_NOT_AVAILABLE: Self
pub const BAD_MESSAGE_NOT_AVAILABLE: Self
Message not available.
Sourcepub const BAD_INSUFFICIENT_CLIENT_PROFILE: Self
pub const BAD_INSUFFICIENT_CLIENT_PROFILE: Self
Insufficient client profile.
Sourcepub const BAD_SESSION_ID_INVALID: Self
pub const BAD_SESSION_ID_INVALID: Self
Session ID invalid.
Sourcepub const BAD_SESSION_CLOSED: Self
pub const BAD_SESSION_CLOSED: Self
Session closed.
Sourcepub const BAD_SESSION_NOT_ACTIVATED: Self
pub const BAD_SESSION_NOT_ACTIVATED: Self
Session not activated.
Sourcepub const BAD_SECURE_CHANNEL_ID_INVALID: Self
pub const BAD_SECURE_CHANNEL_ID_INVALID: Self
Secure channel ID invalid.
Sourcepub const BAD_SECURE_CHANNEL_CLOSED: Self
pub const BAD_SECURE_CHANNEL_CLOSED: Self
Secure channel closed.
Sourcepub const BAD_REQUEST_TIMEOUT: Self
pub const BAD_REQUEST_TIMEOUT: Self
Request timeout.
Sourcepub const BAD_SECURITY_CHECKS_FAILED: Self
pub const BAD_SECURITY_CHECKS_FAILED: Self
Security checks failed.
Sourcepub const BAD_USER_ACCESS_DENIED: Self
pub const BAD_USER_ACCESS_DENIED: Self
User access denied.
Sourcepub const BAD_IDENTITY_TOKEN_INVALID: Self
pub const BAD_IDENTITY_TOKEN_INVALID: Self
Identity token invalid.
Sourcepub const BAD_IDENTITY_TOKEN_REJECTED: Self
pub const BAD_IDENTITY_TOKEN_REJECTED: Self
Identity token rejected.
Sourcepub const BAD_NO_MATCH: Self
pub const BAD_NO_MATCH: Self
No match.
Sourcepub const BAD_BROWSE_DIRECTION_INVALID: Self
pub const BAD_BROWSE_DIRECTION_INVALID: Self
Browse direction invalid.
Sourcepub const BAD_NODE_NOT_BROWSABLE: Self
pub const BAD_NODE_NOT_BROWSABLE: Self
Node not browsable.
Sourcepub const BAD_REFERENCE_TYPE_ID_INVALID: Self
pub const BAD_REFERENCE_TYPE_ID_INVALID: Self
Reference type ID invalid.
Sourcepub const BAD_CONTINUATION_POINT_INVALID: Self
pub const BAD_CONTINUATION_POINT_INVALID: Self
Continuation point invalid.
Sourcepub const BAD_NO_CONTINUATION_POINTS: Self
pub const BAD_NO_CONTINUATION_POINTS: Self
No continuation points.
Sourcepub const BAD_TOO_MANY_SUBSCRIPTIONS: Self
pub const BAD_TOO_MANY_SUBSCRIPTIONS: Self
Too many subscriptions.
Sourcepub const BAD_TOO_MANY_MONITORED_ITEMS: Self
pub const BAD_TOO_MANY_MONITORED_ITEMS: Self
Too many monitored items.
Sourcepub const BAD_WRITE_NOT_SUPPORTED: Self
pub const BAD_WRITE_NOT_SUPPORTED: Self
Write not supported.
Sourcepub const BAD_HISTORY_OPERATION_INVALID: Self
pub const BAD_HISTORY_OPERATION_INVALID: Self
History operation invalid.
Sourcepub const BAD_HISTORY_OPERATION_UNSUPPORTED: Self
pub const BAD_HISTORY_OPERATION_UNSUPPORTED: Self
History operation unsupported.
Sourcepub const fn is_uncertain(&self) -> bool
pub const fn is_uncertain(&self) -> bool
Check if the status is uncertain.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a description of this status code.
Trait Implementations§
Source§impl BinaryDecodable for StatusCode
impl BinaryDecodable for StatusCode
Source§fn decode(buf: &mut Bytes) -> OpcUaResult<Self>
fn decode(buf: &mut Bytes) -> OpcUaResult<Self>
Source§impl BinaryEncodable for StatusCode
impl BinaryEncodable for StatusCode
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StatusCode
impl Debug for StatusCode
Source§impl Default for StatusCode
impl Default for StatusCode
Source§impl<'de> Deserialize<'de> for StatusCode
impl<'de> Deserialize<'de> for StatusCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for StatusCode
impl Display for StatusCode
Source§impl From<StatusCode> for u32
impl From<StatusCode> for u32
Source§fn from(status: StatusCode) -> Self
fn from(status: StatusCode) -> Self
Source§impl From<u32> for StatusCode
impl From<u32> for StatusCode
Source§impl Hash for StatusCode
impl Hash for StatusCode
Source§impl PartialEq for StatusCode
impl PartialEq for StatusCode
Source§impl Serialize for StatusCode
impl Serialize for StatusCode
impl Copy for StatusCode
impl Eq for StatusCode
impl StructuralPartialEq for StatusCode
Auto Trait Implementations§
impl Freeze for StatusCode
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnsafeUnpin for StatusCode
impl UnwindSafe for StatusCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more