Struct StatusCode

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

Wrapper around an OPC-UA status code, with utilities for displaying, parsing, and reading.

Implementations§

Source§

impl StatusCode

Source

pub fn is_good(&self) -> bool

Return true if the severity is Good

Source

pub fn is_bad(&self) -> bool

Return true if the severity is Bad

Source

pub fn is_uncertain(&self) -> bool

Return true if the severity is Uncertain

Source

pub fn bits(&self) -> u32

Get the inner status code.

Source

pub fn from_category(category: SubStatusCode) -> Self

Create a status code from the given status code category.

Source

pub fn severity(&self) -> StatusCodeSeverity

Get the severity of the status code.

Source

pub fn set_severity(self, value: StatusCodeSeverity) -> Self

Set the severity. Note that this will clear the subcode.

It is equivalent to set_sub_code(SubStatusCode::Good/Bad/Uncertain)

Source

pub fn structure_changed(&self) -> bool

Get the structure changed flag.

Source

pub fn set_structure_changed(self, value: bool) -> Self

Set the structure changed flag.

Source

pub fn semantics_changed(&self) -> bool

Get the semantics changed flag.

Source

pub fn set_semantics_changed(self, value: bool) -> Self

Set the semantics changed flag.

Source

pub fn sub_code(&self) -> SubStatusCode

Get the sub code of this status.

Source

pub fn set_sub_code(self, value: SubStatusCode) -> Self

Set the sub code.

Source

pub fn info_type(&self) -> StatusCodeInfoType

Get the info type, whether this status code represents a data value or not.

Source

pub fn set_info_type(self, value: StatusCodeInfoType) -> Self

Set the info type, this will clear the info bits if set to NotUsed.

Source

pub fn limit(&self) -> StatusCodeLimit

Whether the value is bounded by some limit.

Source

pub fn set_limit(self, limit: StatusCodeLimit) -> Self

Set whether the value is bounded by some limit.

Source

pub fn overflow(&self) -> bool

Get whether the “overflow” flag is set.

Source

pub fn set_overflow(self, value: bool) -> Self

Set the “overflow” flag.

Source

pub fn multi_value(&self) -> bool

Get whether the “multi_value” flag is set.

Source

pub fn set_multi_value(self, value: bool) -> Self

Set the “multi_value” flag.

Source

pub fn extra_data(&self) -> bool

Get whether the “extra_data” flag is set.

Source

pub fn set_extra_data(self, value: bool) -> Self

Set the “extra_data” flag.

Source

pub fn partial(&self) -> bool

Get whether the “partial” flag is set.

Source

pub fn set_partial(self, value: bool) -> Self

Set the “partial” flag.

Source

pub fn value_type(&self) -> StatusCodeValueType

Get the historical value type, only applicable to historical values.

Source

pub fn set_value_type(self, value: StatusCodeValueType) -> Self

Set the historical value type, only applicable to historical values.

Source

pub fn validate(&self) -> Result<(), StatusCodeValidationError>

Validate the status code. Status codes may be invalid in order to be compatible with future OPC-UA versions, but this can be called to check if they are valid according to the standard when this was written (1.05)

Source§

impl StatusCode

Source

pub const Good: StatusCode

The operation succeeded.

Source

pub const Uncertain: StatusCode

The operation was uncertain.

Source

pub const Bad: StatusCode

The operation failed.

Source

pub const BadUnexpectedError: StatusCode

An unexpected error occurred.

Source

pub const BadInternalError: StatusCode

An internal error occurred as a result of a programming or configuration error.

Source

pub const BadOutOfMemory: StatusCode

Not enough memory to complete the operation.

Source

pub const BadResourceUnavailable: StatusCode

An operating system resource is not available.

Source

pub const BadCommunicationError: StatusCode

A low level communication error occurred.

Source

pub const BadEncodingError: StatusCode

Encoding halted because of invalid data in the objects being serialized.

Source

pub const BadDecodingError: StatusCode

Decoding halted because of invalid data in the stream.

Source

pub const BadEncodingLimitsExceeded: StatusCode

The message encoding/decoding limits imposed by the stack have been exceeded.

Source

pub const BadRequestTooLarge: StatusCode

The request message size exceeds limits set by the server.

Source

pub const BadResponseTooLarge: StatusCode

The response message size exceeds limits set by the client or server.

Source

pub const BadUnknownResponse: StatusCode

An unrecognized response was received from the server.

Source

pub const BadTimeout: StatusCode

The operation timed out.

Source

pub const BadServiceUnsupported: StatusCode

The server does not support the requested service.

Source

pub const BadShutdown: StatusCode

The operation was cancelled because the application is shutting down.

Source

pub const BadServerNotConnected: StatusCode

The operation could not complete because the client is not connected to the server.

Source

pub const BadServerHalted: StatusCode

The server has stopped and cannot process any requests.

Source

pub const BadNothingToDo: StatusCode

No processing could be done because there was nothing to do.

Source

pub const BadTooManyOperations: StatusCode

The request could not be processed because it specified too many operations.

Source

pub const BadTooManyMonitoredItems: StatusCode

The request could not be processed because there are too many monitored items in the subscription.

Source

pub const BadDataTypeIdUnknown: StatusCode

The extension object cannot be (de)serialized because the data type id is not recognized.

Source

pub const BadCertificateInvalid: StatusCode

The certificate provided as a parameter is not valid.

Source

pub const BadSecurityChecksFailed: StatusCode

An error occurred verifying security.

Source

pub const BadCertificatePolicyCheckFailed: StatusCode

The certificate does not meet the requirements of the security policy.

Source

pub const BadCertificateTimeInvalid: StatusCode

The certificate has expired or is not yet valid.

Source

pub const BadCertificateIssuerTimeInvalid: StatusCode

An issuer certificate has expired or is not yet valid.

Source

pub const BadCertificateHostNameInvalid: StatusCode

The HostName used to connect to a server does not match a HostName in the certificate.

Source

pub const BadCertificateUriInvalid: StatusCode

The URI specified in the ApplicationDescription does not match the URI in the certificate.

Source

pub const BadCertificateUseNotAllowed: StatusCode

The certificate may not be used for the requested operation.

Source

pub const BadCertificateIssuerUseNotAllowed: StatusCode

The issuer certificate may not be used for the requested operation.

Source

pub const BadCertificateUntrusted: StatusCode

The certificate is not trusted.

Source

pub const BadCertificateRevocationUnknown: StatusCode

It was not possible to determine if the certificate has been revoked.

Source

pub const BadCertificateIssuerRevocationUnknown: StatusCode

It was not possible to determine if the issuer certificate has been revoked.

Source

pub const BadCertificateRevoked: StatusCode

The certificate has been revoked.

Source

pub const BadCertificateIssuerRevoked: StatusCode

The issuer certificate has been revoked.

Source

pub const BadCertificateChainIncomplete: StatusCode

The certificate chain is incomplete.

Source

pub const BadUserAccessDenied: StatusCode

User does not have permission to perform the requested operation.

Source

pub const BadIdentityTokenInvalid: StatusCode

The user identity token is not valid.

Source

pub const BadIdentityTokenRejected: StatusCode

The user identity token is valid but the server has rejected it.

Source

pub const BadSecureChannelIdInvalid: StatusCode

The specified secure channel is no longer valid.

Source

pub const BadInvalidTimestamp: StatusCode

The timestamp is outside the range allowed by the server.

Source

pub const BadNonceInvalid: StatusCode

The nonce does appear to be not a random value or it is not the correct length.

Source

pub const BadSessionIdInvalid: StatusCode

The session id is not valid.

Source

pub const BadSessionClosed: StatusCode

The session was closed by the client.

Source

pub const BadSessionNotActivated: StatusCode

The session cannot be used because ActivateSession has not been called.

Source

pub const BadSubscriptionIdInvalid: StatusCode

The subscription id is not valid.

Source

pub const BadRequestHeaderInvalid: StatusCode

The header for the request is missing or invalid.

Source

pub const BadTimestampsToReturnInvalid: StatusCode

The timestamps to return parameter is invalid.

Source

pub const BadRequestCancelledByClient: StatusCode

The request was cancelled by the client.

Source

pub const BadTooManyArguments: StatusCode

Too many arguments were provided.

Source

pub const BadLicenseExpired: StatusCode

The server requires a license to operate in general or to perform a service or operation, but existing license is expired.

Source

pub const BadLicenseLimitsExceeded: StatusCode

The server has limits on number of allowed operations / objects, based on installed licenses, and these limits where exceeded.

Source

pub const BadLicenseNotAvailable: StatusCode

The server does not have a license which is required to operate in general or to perform a service or operation.

Source

pub const BadServerTooBusy: StatusCode

The Server does not have the resources to process the request at this time.

Source

pub const GoodPasswordChangeRequired: StatusCode

The log-on for the user succeeded but the user is required to change the password.

Source

pub const GoodSubscriptionTransferred: StatusCode

The subscription was transferred to another session.

Source

pub const GoodCompletesAsynchronously: StatusCode

The processing will complete asynchronously.

Source

pub const GoodOverload: StatusCode

Sampling has slowed down due to resource limitations.

Source

pub const GoodClamped: StatusCode

The value written was accepted but was clamped.

Source

pub const BadNoCommunication: StatusCode

Communication with the data source is defined, but not established, and there is no last known value available.

Source

pub const BadWaitingForInitialData: StatusCode

Waiting for the server to obtain values from the underlying data source.

Source

pub const BadNodeIdInvalid: StatusCode

The syntax the node id is not valid or refers to a node that is not valid for the operation.

Source

pub const BadNodeIdUnknown: StatusCode

The node id refers to a node that does not exist in the server address space.

Source

pub const BadAttributeIdInvalid: StatusCode

The attribute is not supported for the specified Node.

Source

pub const BadIndexRangeInvalid: StatusCode

The syntax of the index range parameter is invalid.

Source

pub const BadIndexRangeNoData: StatusCode

No data exists within the range of indexes specified.

Source

pub const BadIndexRangeDataMismatch: StatusCode

The written data does not match the IndexRange specified.

Source

pub const BadDataEncodingInvalid: StatusCode

The data encoding is invalid.

Source

pub const BadDataEncodingUnsupported: StatusCode

The server does not support the requested data encoding for the node.

Source

pub const BadNotReadable: StatusCode

The access level does not allow reading or subscribing to the Node.

Source

pub const BadNotWritable: StatusCode

The access level does not allow writing to the Node.

Source

pub const BadOutOfRange: StatusCode

The value was out of range.

Source

pub const BadNotSupported: StatusCode

The requested operation is not supported.

Source

pub const BadNotFound: StatusCode

A requested item was not found or a search operation ended without success.

Source

pub const BadObjectDeleted: StatusCode

The object cannot be used because it has been deleted.

Source

pub const BadNotImplemented: StatusCode

Requested operation is not implemented.

Source

pub const BadMonitoringModeInvalid: StatusCode

The monitoring mode is invalid.

Source

pub const BadMonitoredItemIdInvalid: StatusCode

The monitoring item id does not refer to a valid monitored item.

Source

pub const BadMonitoredItemFilterInvalid: StatusCode

The monitored item filter parameter is not valid.

Source

pub const BadMonitoredItemFilterUnsupported: StatusCode

The server does not support the requested monitored item filter.

Source

pub const BadFilterNotAllowed: StatusCode

A monitoring filter cannot be used in combination with the attribute specified.

Source

pub const BadStructureMissing: StatusCode

A mandatory structured parameter was missing or null.

Source

pub const BadEventFilterInvalid: StatusCode

The event filter is not valid.

Source

pub const BadContentFilterInvalid: StatusCode

The content filter is not valid.

Source

pub const BadFilterOperatorInvalid: StatusCode

An unrecognized operator was provided in a filter.

Source

pub const BadFilterOperatorUnsupported: StatusCode

A valid operator was provided, but the server does not provide support for this filter operator.

Source

pub const BadFilterOperandCountMismatch: StatusCode

The number of operands provided for the filter operator was less then expected for the operand provided.

Source

pub const BadFilterOperandInvalid: StatusCode

The operand used in a content filter is not valid.

Source

pub const BadFilterElementInvalid: StatusCode

The referenced element is not a valid element in the content filter.

Source

pub const BadFilterLiteralInvalid: StatusCode

The referenced literal is not a valid value.

Source

pub const BadContinuationPointInvalid: StatusCode

The continuation point provide is longer valid.

Source

pub const BadNoContinuationPoints: StatusCode

The operation could not be processed because all continuation points have been allocated.

Source

pub const BadReferenceTypeIdInvalid: StatusCode

The reference type id does not refer to a valid reference type node.

Source

pub const BadBrowseDirectionInvalid: StatusCode

The browse direction is not valid.

Source

pub const BadNodeNotInView: StatusCode

The node is not part of the view.

Source

pub const BadNumericOverflow: StatusCode

The number was not accepted because of a numeric overflow.

Source

pub const BadLocaleNotSupported: StatusCode

The locale in the requested write operation is not supported.

Source

pub const BadNoValue: StatusCode

The variable has no default value and no initial value.

Source

pub const BadServerUriInvalid: StatusCode

The ServerUri is not a valid URI.

Source

pub const BadServerNameMissing: StatusCode

No ServerName was specified.

Source

pub const BadDiscoveryUrlMissing: StatusCode

No DiscoveryUrl was specified.

Source

pub const BadSempahoreFileMissing: StatusCode

The semaphore file specified by the client is not valid.

Source

pub const BadRequestTypeInvalid: StatusCode

The security token request type is not valid.

Source

pub const BadSecurityModeRejected: StatusCode

The security mode does not meet the requirements set by the server.

Source

pub const BadSecurityPolicyRejected: StatusCode

The security policy does not meet the requirements set by the server.

Source

pub const BadTooManySessions: StatusCode

The server has reached its maximum number of sessions.

Source

pub const BadUserSignatureInvalid: StatusCode

The user token signature is missing or invalid.

Source

pub const BadApplicationSignatureInvalid: StatusCode

The signature generated with the client certificate is missing or invalid.

Source

pub const BadNoValidCertificates: StatusCode

The client did not provide at least one software certificate that is valid and meets the profile requirements for the server.

Source

pub const BadIdentityChangeNotSupported: StatusCode

The server does not support changing the user identity assigned to the session.

Source

pub const BadRequestCancelledByRequest: StatusCode

The request was cancelled by the client with the Cancel service.

Source

pub const BadParentNodeIdInvalid: StatusCode

The parent node id does not to refer to a valid node.

Source

pub const BadReferenceNotAllowed: StatusCode

The reference could not be created because it violates constraints imposed by the data model.

Source

pub const BadNodeIdRejected: StatusCode

The requested node id was reject because it was either invalid or server does not allow node ids to be specified by the client.

Source

pub const BadNodeIdExists: StatusCode

The requested node id is already used by another node.

Source

pub const BadNodeClassInvalid: StatusCode

The node class is not valid.

Source

pub const BadBrowseNameInvalid: StatusCode

The browse name is invalid.

Source

pub const BadBrowseNameDuplicated: StatusCode

The browse name is not unique among nodes that share the same relationship with the parent.

Source

pub const BadNodeAttributesInvalid: StatusCode

The node attributes are not valid for the node class.

Source

pub const BadTypeDefinitionInvalid: StatusCode

The type definition node id does not reference an appropriate type node.

Source

pub const BadSourceNodeIdInvalid: StatusCode

The source node id does not reference a valid node.

Source

pub const BadTargetNodeIdInvalid: StatusCode

The target node id does not reference a valid node.

Source

pub const BadDuplicateReferenceNotAllowed: StatusCode

The reference type between the nodes is already defined.

Source

pub const BadInvalidSelfReference: StatusCode

The server does not allow this type of self reference on this node.

Source

pub const BadReferenceLocalOnly: StatusCode

The reference type is not valid for a reference to a remote server.

Source

pub const BadNoDeleteRights: StatusCode

The server will not allow the node to be deleted.

Source

pub const UncertainReferenceNotDeleted: StatusCode

The server was not able to delete all target references.

Source

pub const BadServerIndexInvalid: StatusCode

The server index is not valid.

Source

pub const BadViewIdUnknown: StatusCode

The view id does not refer to a valid view node.

Source

pub const BadViewTimestampInvalid: StatusCode

The view timestamp is not available or not supported.

Source

pub const BadViewParameterMismatch: StatusCode

The view parameters are not consistent with each other.

Source

pub const BadViewVersionInvalid: StatusCode

The view version is not available or not supported.

Source

pub const UncertainNotAllNodesAvailable: StatusCode

The list of references may not be complete because the underlying system is not available.

Source

pub const GoodResultsMayBeIncomplete: StatusCode

The server should have followed a reference to a node in a remote server but did not. The result set may be incomplete.

Source

pub const BadNotTypeDefinition: StatusCode

The provided Nodeid was not a type definition nodeid.

Source

pub const UncertainReferenceOutOfServer: StatusCode

One of the references to follow in the relative path references to a node in the address space in another server.

Source

pub const BadTooManyMatches: StatusCode

The requested operation has too many matches to return.

Source

pub const BadQueryTooComplex: StatusCode

The requested operation requires too many resources in the server.

Source

pub const BadNoMatch: StatusCode

The requested operation has no match to return.

Source

pub const BadMaxAgeInvalid: StatusCode

The max age parameter is invalid.

Source

pub const BadSecurityModeInsufficient: StatusCode

The operation is not permitted over the current secure channel.

Source

pub const BadHistoryOperationInvalid: StatusCode

The history details parameter is not valid.

Source

pub const BadHistoryOperationUnsupported: StatusCode

The server does not support the requested operation.

Source

pub const BadInvalidTimestampArgument: StatusCode

The defined timestamp to return was invalid.

Source

pub const BadWriteNotSupported: StatusCode

The server does not support writing the combination of value, status and timestamps provided.

Source

pub const BadTypeMismatch: StatusCode

The value supplied for the attribute is not of the same type as the attribute’s value.

Source

pub const BadMethodInvalid: StatusCode

The method id does not refer to a method for the specified object.

Source

pub const BadArgumentsMissing: StatusCode

The client did not specify all of the input arguments for the method.

Source

pub const BadNotExecutable: StatusCode

The executable attribute does not allow the execution of the method.

Source

pub const BadTooManySubscriptions: StatusCode

The server has reached its maximum number of subscriptions.

Source

pub const BadTooManyPublishRequests: StatusCode

The server has reached the maximum number of queued publish requests.

Source

pub const BadNoSubscription: StatusCode

There is no subscription available for this session.

Source

pub const BadSequenceNumberUnknown: StatusCode

The sequence number is unknown to the server.

Source

pub const GoodRetransmissionQueueNotSupported: StatusCode

The Server does not support retransmission queue and acknowledgement of sequence numbers is not available.

Source

pub const BadMessageNotAvailable: StatusCode

The requested notification message is no longer available.

Source

pub const BadInsufficientClientProfile: StatusCode

The client of the current session does not support one or more Profiles that are necessary for the subscription.

Source

pub const BadStateNotActive: StatusCode

The sub-state machine is not currently active.

Source

pub const BadAlreadyExists: StatusCode

An equivalent rule already exists.

Source

pub const BadTcpServerTooBusy: StatusCode

The server cannot process the request because it is too busy.

Source

pub const BadTcpMessageTypeInvalid: StatusCode

The type of the message specified in the header invalid.

Source

pub const BadTcpSecureChannelUnknown: StatusCode

The SecureChannelId and/or TokenId are not currently in use.

Source

pub const BadTcpMessageTooLarge: StatusCode

The size of the message chunk specified in the header is too large.

Source

pub const BadTcpNotEnoughResources: StatusCode

There are not enough resources to process the request.

Source

pub const BadTcpInternalError: StatusCode

An internal error occurred.

Source

pub const BadTcpEndpointUrlInvalid: StatusCode

The server does not recognize the QueryString specified.

Source

pub const BadRequestInterrupted: StatusCode

The request could not be sent because of a network interruption.

Source

pub const BadRequestTimeout: StatusCode

Timeout occurred while processing the request.

Source

pub const BadSecureChannelClosed: StatusCode

The secure channel has been closed.

Source

pub const BadSecureChannelTokenUnknown: StatusCode

The token has expired or is not recognized.

Source

pub const BadSequenceNumberInvalid: StatusCode

The sequence number is not valid.

Source

pub const BadProtocolVersionUnsupported: StatusCode

The applications do not have compatible protocol versions.

Source

pub const BadConfigurationError: StatusCode

There is a problem with the configuration that affects the usefulness of the value.

Source

pub const BadNotConnected: StatusCode

The variable should receive its value from another variable, but has never been configured to do so.

Source

pub const BadDeviceFailure: StatusCode

There has been a failure in the device/data source that generates the value that has affected the value.

Source

pub const BadSensorFailure: StatusCode

There has been a failure in the sensor from which the value is derived by the device/data source.

Source

pub const BadOutOfService: StatusCode

The source of the data is not operational.

Source

pub const BadDeadbandFilterInvalid: StatusCode

The deadband filter is not valid.

Source

pub const UncertainNoCommunicationLastUsableValue: StatusCode

Communication to the data source has failed. The variable value is the last value that had a good quality.

Source

pub const UncertainLastUsableValue: StatusCode

Whatever was updating this value has stopped doing so.

Source

pub const UncertainSubstituteValue: StatusCode

The value is an operational value that was manually overwritten.

Source

pub const UncertainInitialValue: StatusCode

The value is an initial value for a variable that normally receives its value from another variable.

Source

pub const UncertainSensorNotAccurate: StatusCode

The value is at one of the sensor limits.

Source

pub const UncertainEngineeringUnitsExceeded: StatusCode

The value is outside of the range of values defined for this parameter.

Source

pub const UncertainSubNormal: StatusCode

The data value is derived from multiple sources and has less than the required number of Good sources.

Source

pub const GoodLocalOverride: StatusCode

The value has been overridden.

Source

pub const GoodSubNormal: StatusCode

The value is derived from multiple sources and has the required number of Good sources, but less than the full number of Good sources.

Source

pub const BadRefreshInProgress: StatusCode

This Condition refresh failed, a Condition refresh operation is already in progress.

Source

pub const BadConditionAlreadyDisabled: StatusCode

This condition has already been disabled.

Source

pub const BadConditionAlreadyEnabled: StatusCode

This condition has already been enabled.

Source

pub const BadConditionDisabled: StatusCode

Property not available, this condition is disabled.

Source

pub const BadEventIdUnknown: StatusCode

The specified event id is not recognized.

Source

pub const BadEventNotAcknowledgeable: StatusCode

The event cannot be acknowledged.

Source

pub const BadDialogNotActive: StatusCode

The dialog condition is not active.

Source

pub const BadDialogResponseInvalid: StatusCode

The response is not valid for the dialog.

Source

pub const BadConditionBranchAlreadyAcked: StatusCode

The condition branch has already been acknowledged.

Source

pub const BadConditionBranchAlreadyConfirmed: StatusCode

The condition branch has already been confirmed.

Source

pub const BadConditionAlreadyShelved: StatusCode

The condition has already been shelved.

Source

pub const BadConditionNotShelved: StatusCode

The condition is not currently shelved.

Source

pub const BadShelvingTimeOutOfRange: StatusCode

The shelving time not within an acceptable range.

Source

pub const BadNoData: StatusCode

No data exists for the requested time range or event filter.

Source

pub const BadBoundNotFound: StatusCode

No data found to provide upper or lower bound value.

Source

pub const BadBoundNotSupported: StatusCode

The server cannot retrieve a bound for the variable.

Source

pub const BadDataLost: StatusCode

Data is missing due to collection started/stopped/lost.

Source

pub const BadDataUnavailable: StatusCode

Expected data is unavailable for the requested time range due to an un-mounted volume, an off-line archive or tape, or similar reason for temporary unavailability.

Source

pub const BadEntryExists: StatusCode

The data or event was not successfully inserted because a matching entry exists.

Source

pub const BadNoEntryExists: StatusCode

The data or event was not successfully updated because no matching entry exists.

Source

pub const BadTimestampNotSupported: StatusCode

The Client requested history using a TimestampsToReturn the Server does not support.

Source

pub const GoodEntryInserted: StatusCode

The data or event was successfully inserted into the historical database.

Source

pub const GoodEntryReplaced: StatusCode

The data or event field was successfully replaced in the historical database.

Source

pub const UncertainDataSubNormal: StatusCode

The aggregate value is derived from multiple values and has less than the required number of Good values.

Source

pub const GoodNoData: StatusCode

No data exists for the requested time range or event filter.

Source

pub const GoodMoreData: StatusCode

More data is available in the time range beyond the number of values requested.

Source

pub const BadAggregateListMismatch: StatusCode

The requested number of Aggregates does not match the requested number of NodeIds.

Source

pub const BadAggregateNotSupported: StatusCode

The requested Aggregate is not support by the server.

Source

pub const BadAggregateInvalidInputs: StatusCode

The aggregate value could not be derived due to invalid data inputs.

Source

pub const BadAggregateConfigurationRejected: StatusCode

The aggregate configuration is not valid for specified node.

Source

pub const GoodDataIgnored: StatusCode

The request specifies fields which are not valid for the EventType or cannot be saved by the historian.

Source

pub const BadRequestNotAllowed: StatusCode

The request was rejected by the server because it did not meet the criteria set by the server.

Source

pub const BadRequestNotComplete: StatusCode

The request has not been processed by the server yet.

Source

pub const BadTransactionPending: StatusCode

The operation is not allowed because a transaction is in progress.

Source

pub const BadTicketRequired: StatusCode

The device identity needs a ticket before it can be accepted.

Source

pub const BadTicketInvalid: StatusCode

The device identity needs a ticket before it can be accepted.

Source

pub const BadLocked: StatusCode

The requested operation is not allowed, because the Node is locked by a different application.

Source

pub const BadRequiresLock: StatusCode

The requested operation is not allowed, because the Node is not locked by the application.

Source

pub const GoodEdited: StatusCode

The value does not come from the real source and has been edited by the server.

Source

pub const GoodPostActionFailed: StatusCode

There was an error in execution of these post-actions.

Source

pub const UncertainDominantValueChanged: StatusCode

The related EngineeringUnit has been changed but the Variable Value is still provided based on the previous unit.

Source

pub const GoodDependentValueChanged: StatusCode

A dependent value has been changed but the change has not been applied to the device.

Source

pub const BadDominantValueChanged: StatusCode

The related EngineeringUnit has been changed but this change has not been applied to the device. The Variable Value is still dependent on the previous unit but its status is currently Bad.

Source

pub const UncertainDependentValueChanged: StatusCode

A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is uncertain.

Source

pub const BadDependentValueChanged: StatusCode

A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is Bad.

Source

pub const GoodEdited_DependentValueChanged: StatusCode

It is delivered with a dominant Variable value when a dependent Variable has changed but the change has not been applied.

Source

pub const GoodEdited_DominantValueChanged: StatusCode

It is delivered with a dependent Variable value when a dominant Variable has changed but the change has not been applied.

Source

pub const GoodEdited_DominantValueChanged_DependentValueChanged: StatusCode

It is delivered with a dependent Variable value when a dominant or dependent Variable has changed but change has not been applied.

Source

pub const BadEdited_OutOfRange: StatusCode

It is delivered with a Variable value when Variable has changed but the value is not legal.

Source

pub const BadInitialValue_OutOfRange: StatusCode

It is delivered with a Variable value when a source Variable has changed but the value is not legal.

Source

pub const BadOutOfRange_DominantValueChanged: StatusCode

It is delivered with a dependent Variable value when a dominant Variable has changed and the value is not legal.

Source

pub const BadEdited_OutOfRange_DominantValueChanged: StatusCode

It is delivered with a dependent Variable value when a dominant Variable has changed, the value is not legal and the change has not been applied.

Source

pub const BadOutOfRange_DominantValueChanged_DependentValueChanged: StatusCode

It is delivered with a dependent Variable value when a dominant or dependent Variable has changed and the value is not legal.

Source

pub const BadEdited_OutOfRange_DominantValueChanged_DependentValueChanged: StatusCode

It is delivered with a dependent Variable value when a dominant or dependent Variable has changed, the value is not legal and the change has not been applied.

Source

pub const GoodCommunicationEvent: StatusCode

The communication layer has raised an event.

Source

pub const GoodShutdownEvent: StatusCode

The system is shutting down.

Source

pub const GoodCallAgain: StatusCode

The operation is not finished and needs to be called again.

Source

pub const GoodNonCriticalTimeout: StatusCode

A non-critical timeout occurred.

Source

pub const BadInvalidArgument: StatusCode

One or more arguments are invalid.

Source

pub const BadConnectionRejected: StatusCode

Could not establish a network connection to remote server.

Source

pub const BadDisconnect: StatusCode

The server has disconnected from the client.

Source

pub const BadConnectionClosed: StatusCode

The network connection has been closed.

Source

pub const BadInvalidState: StatusCode

The operation cannot be completed because the object is closed, uninitialized or in some other invalid state.

Source

pub const BadEndOfStream: StatusCode

Cannot move beyond end of the stream.

Source

pub const BadNoDataAvailable: StatusCode

No data is currently available for reading from a non-blocking stream.

Source

pub const BadWaitingForResponse: StatusCode

The asynchronous operation is waiting for a response.

Source

pub const BadOperationAbandoned: StatusCode

The asynchronous operation was abandoned by the caller.

Source

pub const BadExpectedStreamToBlock: StatusCode

The stream did not return all data requested (possibly because it is a non-blocking stream).

Source

pub const BadWouldBlock: StatusCode

Non blocking behaviour is required and the operation would block.

Source

pub const BadSyntaxError: StatusCode

A value had an invalid syntax.

Source

pub const BadMaxConnectionsReached: StatusCode

The operation could not be finished because all available connections are in use.

Source

pub const UncertainTransducerInManual: StatusCode

The value may not be accurate because the transducer is in manual mode.

Source

pub const UncertainSimulatedValue: StatusCode

The value is simulated.

Source

pub const UncertainSensorCalibration: StatusCode

The value may not be accurate due to a sensor calibration fault.

Source

pub const UncertainConfigurationError: StatusCode

The value may not be accurate due to a configuration issue.

Source

pub const GoodCascadeInitializationAcknowledged: StatusCode

The value source supports cascade handshaking and the value has been Initialized based on an initialization request from a cascade secondary.

Source

pub const GoodCascadeInitializationRequest: StatusCode

The value source supports cascade handshaking and is requesting initialization of a cascade primary.

Source

pub const GoodCascadeNotInvited: StatusCode

The value source supports cascade handshaking, however, the source’s current state does not allow for cascade.

Source

pub const GoodCascadeNotSelected: StatusCode

The value source supports cascade handshaking, however, the source has not selected the corresponding cascade primary for use.

Source

pub const GoodFaultStateActive: StatusCode

There is a fault state condition active in the value source.

Source

pub const GoodInitiateFaultState: StatusCode

A fault state condition is being requested of the destination.

Source

pub const GoodCascade: StatusCode

The value is accurate, and the signal source supports cascade handshaking.

Source

pub const BadDataSetIdInvalid: StatusCode

The DataSet specified for the DataSetWriter creation is invalid.

Source

pub const Invalid: StatusCode

Invalid status code

Trait Implementations§

Source§

impl Clone for StatusCode

Source§

fn clone(&self) -> StatusCode

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 StatusCode

Source§

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

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

impl Default for StatusCode

Source§

fn default() -> StatusCode

Returns the “default value” for a type. Read more
Source§

impl Display for StatusCode

Source§

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

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

impl Error for StatusCode

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for StatusCode

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<StatusCode> for DataValue

Source§

fn from(v: StatusCode) -> Self

Converts to this type from the input type.
Source§

impl From<StatusCode> for Error

Source§

fn from(value: StatusCode) -> Self

Converts to this type from the input type.
Source§

impl From<StatusCode> for OpcUaError

Source§

fn from(value: StatusCode) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for StatusCode

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl Hash for StatusCode

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 IntoVariant for StatusCode

Source§

fn into_variant(self) -> Variant

Convert self into a variant.
Source§

impl JsonDecodable for StatusCode

Source§

fn decode( stream: &mut JsonStreamReader<&mut dyn Read>, _ctx: &Context<'_>, ) -> EncodingResult<Self>

Decode Self from a JSON stream.
Source§

impl JsonEncodable for StatusCode

Source§

fn encode( &self, stream: &mut JsonStreamWriter<&mut dyn Write>, _ctx: &Context<'_>, ) -> EncodingResult<()>

Write the type to the provided JSON writer.
Source§

impl PartialEq for StatusCode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl SimpleBinaryDecodable for StatusCode

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Decode Self from the byte stream.
Source§

impl SimpleBinaryEncodable for StatusCode

Source§

fn byte_len(&self) -> usize

This may be called prior to writing to ensure the correct amount of space is available.
Source§

fn encode<S: Write + ?Sized>(&self, stream: &mut S) -> EncodingResult<()>

Encodes the instance to the write stream.
Source§

fn encode_to_vec(&self) -> Vec<u8>

Convenience method for encoding a message straight into an array of bytes. It is preferable to reuse buffers than to call this so it should be reserved for tests and trivial code.
Source§

impl TryFromVariant for StatusCode

Source§

fn try_from_variant(v: Variant) -> Result<Self, Error>

Try to cast the given variant to this type.
Source§

impl UaNullable for StatusCode

Source§

fn is_ua_null(&self) -> bool

Return true if this value is null, meaning it can be left out when being encoded in JSON and XML encodings.
Source§

impl VariantType for StatusCode

Source§

fn variant_type_id() -> VariantScalarTypeId

The variant kind this type will be represented as.
Source§

impl XmlDecodable for StatusCode

Source§

fn decode( read: &mut XmlStreamReader<&mut dyn Read>, context: &Context<'_>, ) -> Result<Self, Error>
where Self: Sized,

Decode a value from an XML stream.
Source§

impl XmlEncodable for StatusCode

Source§

fn encode( &self, writer: &mut XmlStreamWriter<&mut dyn Write>, context: &Context<'_>, ) -> Result<(), Error>

Encode a value to an XML stream.
Source§

impl XmlType for StatusCode

Source§

const TAG: &'static str = "StatusCode"

The static fallback tag for this type. Convenience feature, but also used in nested types.
Source§

fn tag(&self) -> &str

The XML tag name for this type.
Source§

impl Copy for StatusCode

Source§

impl Eq for StatusCode

Source§

impl StructuralPartialEq for StatusCode

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> BinaryDecodable for T

Source§

fn decode<S>(stream: &mut S, ctx: &Context<'_>) -> Result<T, Error>
where S: Read + ?Sized,

Decodes an instance from the read stream. The decoding options contains restrictions set by the server / client on the length of strings, arrays etc. If these limits are exceeded the implementation should return with a BadDecodingError as soon as possible.
Source§

impl<T> BinaryEncodable for T

Source§

fn byte_len(&self, _ctx: &Context<'_>) -> usize

Returns the exact byte length of the structure as it would be if encode were called. This may be called prior to writing to ensure the correct amount of space is available.
Source§

fn encode<S>(&self, stream: &mut S, _ctx: &Context<'_>) -> Result<(), Error>
where S: Write + ?Sized,

Encodes the instance to the write stream.
Source§

fn encode_to_vec(&self, ctx: &Context<'_>) -> Vec<u8>

Convenience method for encoding a message straight into an array of bytes. It is preferable to reuse buffers than to call this so it should be reserved for tests and trivial code.
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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> EventField for T
where T: IntoVariant + Clone,

Source§

fn get_value( &self, attribute_id: AttributeId, index_range: &NumericRange, remaining_path: &[QualifiedName], ) -> Variant

Get the variant representation of this field, using the given index range. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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 = 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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more