Skip to main content

Crate opcua_nodes

Crate opcua_nodes 

Source
Expand description

The nodes crate contains core types for generated address spaces.

This includes types for each node class, some common enums for references, core event types, and core types for node set import.

Structs§

AccessLevel
Variable access level.
Base
Base node class contains the attributes that all other kinds of nodes need. Part 3, diagram B.4
BaseEventType
This corresponds to BaseEventType definition in OPC UA Part 5
DataType
A DataType is a type of node within the AddressSpace.
DataTypeBuilder
A builder for constructing a node of same name. This can be used as an easy way to create a node and the references it has to another node in a simple fashion.
DefaultTypeTree
Type managing the types in an OPC-UA server. The server needs to know about all available types, to handle things like event filters, browse filtering, etc.
EventNotifier
Node event notifier.
ImportedItem
A node with associated references produced by a type implementing NodeSetImport
ImportedReference
A reference produced by a type implementing NodeSetImport. Note that the source of this reference is given by the node in the outer ImportedItem
Method
A Method is a type of node within the AddressSpace.
MethodBuilder
A builder for constructing a node of same name. This can be used as an easy way to create a node and the references it has to another node in a simple fashion.
MethodEventField
A field of an event that references a method.
NamespaceMap
Utility for handling assignment of namespaces on server startup.
NodeSet2Import
NodeSetImport implementation for dynamically loading NodeSet2 files at runtime. Note that structures must be loaded with a type loader. By default the type loader for the base types is registered, but if your NodeSet2 file uses custom types you will have to add an TypeLoader using NodeSet2Import::add_type_loader.
NodeSetNamespaceMapper
Utility handling namespaces when loading node sets.
Object
An Object is a type of node within the AddressSpace.
ObjectBuilder
A builder for constructing a node of same name. This can be used as an easy way to create a node and the references it has to another node in a simple fashion.
ObjectType
An ObjectType is a type of node within the AddressSpace.
ObjectTypeBuilder
A builder for constructing a node of same name. This can be used as an easy way to create a node and the references it has to another node in a simple fashion.
ParsedAttributeOperand
Parsed version of the raw opcua_types::AttributeOperand
ParsedContentFilter
Parsed version of the raw ContentFilter.
ParsedContentFilterElement
Element of a parsed content filter.
ParsedEventFilter
Parsed version of the raw EventFilter.
ParsedSimpleAttributeOperand
Parsed version of the raw SimpleAttributeOperand.
Reference
Owned OPC-UA reference.
ReferenceRef
A borrowed version of an OPC-UA reference.
ReferenceType
A ReferenceType is a type of node within the AddressSpace.
ReferenceTypeBuilder
A builder for constructing a node of same name. This can be used as an easy way to create a node and the references it has to another node in a simple fashion.
References
Structure for storing and accessing OPC-UA references.
TypeProperty
A single property of a type in the type tree.
TypePropertyInverseRef
Inverse reference to a type from a property.
Variable
A Variable is a type of node within the AddressSpace.
VariableBuilder
A builder for constructing a node of same name. This can be used as an easy way to create a node and the references it has to another node in a simple fashion.
VariableType
A VariableType is a type of node within the AddressSpace.
VariableTypeBuilder
A builder for constructing a node of same name. This can be used as an easy way to create a node and the references it has to another node in a simple fashion.
View
A View is a type of node within the AddressSpace.
ViewBuilder
A builder for constructing a node of same name. This can be used as an easy way to create a node and the references it has to another node in a simple fashion.

Enums§

FromAttributesError
Error returned when creating a node from attributes.
NodeType
The NodeType enum enumerates the different OPC-UA node classes.
ParsedOperand
Parsed and validated Operand.
ReferenceDirection
Direction of a reference in the address space.
TypeTreeNode
A node in the type tree.

Traits§

AttributeQueryable
Trait for something that can be queried for attribute values.
Event
Trait implemented by all events.
EventField
Trait implemented by any type that can be a field in an event.
HasNodeId
Trait for types that have a node ID.
Node
Implemented by each node type’s to provide a generic way to set or get attributes, e.g. from the Attributes service set. Internal callers could call the setter / getter on the node if they have access to them.
NodeBase
Implemented within a macro for all Node types. Functions that return a result in an Option do so because the attribute is optional and not necessarily there.
NodeInsertTarget
Something a list of nodes can be inserted into. Implemented for AddressSpace in the server crate.
NodeSetImport
Trait for a type that wraps a nodeset import. Currently this is implemeneted by the crate::xml::NodeSet2Import type with the xml feature, and by a type in the root of node set imports generated by async-opcua-codegen
TypeTree
Trait for a type tree, a structure that provides methods to inspect type relationships. This is used for getting reference sub-types, and for events.

Functions§

new_node_from_attributes
Create a new node from AddNodeAttributes.

Derive Macros§

Event
Derive the Event trait. This will also generate an implementation of the EventField trait.
EventField
Derive the EventField trait.