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§
- Access
Level - Variable access level.
- Base
- Base node class contains the attributes that all other kinds of nodes need. Part 3, diagram B.4
- Base
Event Type - This corresponds to BaseEventType definition in OPC UA Part 5
- Data
Type - A
DataTypeis a type of node within theAddressSpace. - Data
Type Builder - 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.
- Default
Type Tree - 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.
- Event
Notifier - Node event notifier.
- Imported
Item - A node with associated references produced by a type implementing
NodeSetImport - Imported
Reference - A reference produced by a type implementing
NodeSetImport. Note that the source of this reference is given by the node in the outerImportedItem - Method
- A
Methodis a type of node within theAddressSpace. - Method
Builder - 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.
- Method
Event Field - A field of an event that references a method.
- Namespace
Map - Utility for handling assignment of namespaces on server startup.
- Node
Set2 Import NodeSetImportimplementation 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 anTypeLoaderusingNodeSet2Import::add_type_loader.- Node
SetNamespace Mapper - Utility handling namespaces when loading node sets.
- Object
- An
Objectis a type of node within theAddressSpace. - Object
Builder - 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.
- Object
Type - An
ObjectTypeis a type of node within theAddressSpace. - Object
Type Builder - 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.
- Parsed
Attribute Operand - Parsed version of the raw opcua_types::AttributeOperand
- Parsed
Content Filter - Parsed version of the raw ContentFilter.
- Parsed
Content Filter Element - Element of a parsed content filter.
- Parsed
Event Filter - Parsed version of the raw EventFilter.
- Parsed
Simple Attribute Operand - Parsed version of the raw SimpleAttributeOperand.
- Reference
- Owned OPC-UA reference.
- Reference
Ref - A borrowed version of an OPC-UA reference.
- Reference
Type - A
ReferenceTypeis a type of node within theAddressSpace. - Reference
Type Builder - 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.
- Type
Property - A single property of a type in the type tree.
- Type
Property Inverse Ref - Inverse reference to a type from a property.
- Variable
- A
Variableis a type of node within theAddressSpace. - Variable
Builder - 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.
- Variable
Type - A
VariableTypeis a type of node within theAddressSpace. - Variable
Type Builder - 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
Viewis a type of node within theAddressSpace. - View
Builder - 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§
- From
Attributes Error - Error returned when creating a node from attributes.
- Node
Type - The
NodeTypeenum enumerates the different OPC-UA node classes. - Parsed
Operand - Parsed and validated Operand.
- Reference
Direction - Direction of a reference in the address space.
- Type
Tree Node - A node in the type tree.
Traits§
- Attribute
Queryable - Trait for something that can be queried for attribute values.
- Event
- Trait implemented by all events.
- Event
Field - Trait implemented by any type that can be a field in an event.
- HasNode
Id - 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.
- Node
Base - 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.
- Node
Insert Target - Something a list of nodes can be inserted into. Implemented for AddressSpace in the server crate.
- Node
SetImport - Trait for a type that wraps a nodeset import.
Currently this is implemeneted by the
crate::xml::NodeSet2Importtype with thexmlfeature, and by a type in the root of node set imports generated byasync-opcua-codegen - Type
Tree - 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
Eventtrait. This will also generate an implementation of theEventFieldtrait. - Event
Field - Derive the
EventFieldtrait.