Crate opcua_server

Source
Expand description

A general implementation of an OPC-UA server.

Support for subscriptions, complex address spaces, methods, all OPC-UA services, node set import, and more.

The server starts a tokio task for each connection, and another task for each incoming service call.

See docs for the main opcua crate for details on usage.

Modules§

address_space
Implementation of AddressSpace, and in-memory OPC-UA address space.
authenticator
The AuthManager trait, and tooling related to this.
constants
Contains constaints for default configuration values. These are for the most part possible to override through server configuration.
diagnostics
This module contains the diagnostics node manager, and related types.
node_manager
The NodeManager trait, as well as utilities related to calling services on this, and tooling for implementing custom node managers.

Macros§

load_method_args
Convenient macro for performing an implicit cast of each argument to the expected method argument type, and returning the arguments as a tuple.

Structs§

CertificateValidation
Configuration for certificate validation.
ContinuationPoint
Representation of a dynamic continuation point. Each node manager may provide their own continuation point type, which is stored by the server. This wraps that value and provides interfaces to access it for a given node manager.
CreateMonitoredItem
Container for a request to create a single monitored item.
EndpointIdentifier
Unique ID of an endpoint.
HistoryServerCapabilities
History capabilities. As all history is implemented by custom node managers, this should be set according to what your node managers support.
Limits
Server limits configuration.
MonitoredItem
State of an active monitored item on the server.
MonitoredItemHandle
Unique identifier for a monitored item on the server.
OperationalLimits
Limits on service calls.
Server
The server struct. This is consumed when run, so you will typically not hold onto this for longer periods of time.
ServerBuilder
Server builder, used to configure the server programatically, and for setting core components like node managers, authenticator, and type collections.
ServerCapabilities
Server capabilities object.
ServerConfig
Server configuration object.
ServerEndpoint
A configured server endpoint.
ServerHandle
Reference to a server instance containing tools to modify the server while it is running.
ServerInfo
Server state is any configuration associated with the server as a whole that individual sessions might be interested in.
ServerStatusWrapper
Wrapper for managing the ServerStatus variable on the server.
ServerUserToken
User token handled by the default authenticator.
SessionSubscriptions
Subscriptions belonging to a single session. Note that they are technically owned by a user token, which means that they can be transfered to a different session.
Subscription
A single subscription maintained by the server.
SubscriptionCache
Structure storing all subscriptions and monitored items on the server. Used to notify users of changes.
SubscriptionLimits
Subscription-related limits.
TcpConfig
Configuration for the TCP transport.

Enums§

IdentityToken
Identity token representation on the server, decoded from the client.
SubscriptionState
Current internal state of the subscription.

Constants§

ANONYMOUS_USER_TOKEN_ID
Token ID for the anonymous user token.

Traits§

EventField
Trait implemented by any type that can be a field in an event.