Crate opcua_server

Crate opcua_server 

Source
Expand description

The OPC UA Server module contains the server side functionality - address space, services, server security, session management, local discovery server registration and subscriptions.

§Usage

An implementation will usually start by building a ServerConfig, either from a configuration file, or through code. Then it will construct a Server, initialise its address space, and then run it.

§Example

This is a very simple server which runs with the default address space on the default port.

use opcua_server::prelude::*;

fn main() {
    let server: Server = ServerBuilder::new_sample().server().unwrap();
    server.run();
}

Modules§

address_space
Provides functionality to create an address space, find nodes, add nodes, change attributes and values on nodes.
builder
callbacks
Callbacks that a server implementation may register with the library
comms
Provides communication services for the server such as the transport layer and secure channel implementation
config
Provides configuration settings for the server including serialization and deserialization from file.
constants
Provides constants that govern the internal workings of the server implementation.
continuation_point
Provides a browse continuation point type for tracking a browse operation initiated by a client.
diagnostics
Provides diagnostics structures and functions for gathering information about the running state of a server.
events
historical
metrics
Provides debug metric of server state that can be used by anything that wants to see what is happening in the server. State is updated by the server as sessions are added, removed, and when subscriptions / monitored items are added, removed.
prelude
Provides a way to use most types and functions commonly used by server implementations from a single use statement.
server
Provides the Server type and functionality related to it.
session
state
Provides server state information, such as status, configuration, running servers and so on.
subscriptions
util
Provides utility routines for things that might be used in a number of places elsewhere.