Struct opcua_server::server::ServerState [] [src]

pub struct ServerState {
    pub application_uri: UAString,
    pub product_uri: UAString,
    pub application_name: LocalizedText,
    pub base_endpoint: String,
    pub start_time: DateTime,
    pub namespaces: Vec<String>,
    pub servers: Vec<String>,
    pub endpoints: Vec<Endpoint>,
    pub config: Arc<Mutex<ServerConfig>>,
    pub certificate_store: Arc<Mutex<CertificateStore>>,
    pub server_certificate: Option<X509>,
    pub server_pkey: Option<PKey>,
    pub address_space: Arc<Mutex<AddressSpace>>,
    pub last_subscription_id: UInt32,
    pub max_subscriptions: usize,
    pub min_publishing_interval: Duration,
    pub max_keep_alive_count: UInt32,
    pub abort: bool,
    pub diagnostics: ServerDiagnostics,
}

Server state is any state associated with the server as a whole that individual sessions might be interested in. That includes configuration info, address space etc.

Fields

The application URI

The product URI

The application name

The protocol, hostname and port formatted as a url, but less the path

The time the server started

The list of namespaces

The list of servers (by urn)

Server configuration

Certificate store for certs

Server public certificate read from config location or null if there is none

Server private key pair

The address space

The next subscription id - subscriptions are shared across the whole server. Initial value is a random u32.

Maximum number of subscriptions per session, 0 means no limit (danger)

Minimum publishing interval

Maxmimum keep alive count

Sets the abort flag that terminates the associated server

Diagnostic information

Methods

impl ServerState
[src]

Validate the username identity token