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
application_uri: UAString
The application URI
product_uri: UAString
The product URI
application_name: LocalizedText
The application name
base_endpoint: String
The protocol, hostname and port formatted as a url, but less the path
start_time: DateTime
The time the server started
namespaces: Vec<String>
The list of namespaces
servers: Vec<String>
The list of servers (by urn)
endpoints: Vec<Endpoint>
config: Arc<Mutex<ServerConfig>>
Server configuration
certificate_store: Arc<Mutex<CertificateStore>>
Certificate store for certs
server_certificate: Option<X509>
Server public certificate read from config location or null if there is none
server_pkey: Option<PKey>
Server private key pair
address_space: Arc<Mutex<AddressSpace>>
The address space
last_subscription_id: UInt32
The next subscription id - subscriptions are shared across the whole server. Initial value is a random u32.
max_subscriptions: usize
Maximum number of subscriptions per session, 0 means no limit (danger)
min_publishing_interval: Duration
Minimum publishing interval
max_keep_alive_count: UInt32
Maxmimum keep alive count
abort: bool
Sets the abort flag that terminates the associated server
diagnostics: ServerDiagnostics
Diagnostic information
Methods
impl ServerState
[src]
fn endpoints(&self) -> Vec<EndpointDescription>
fn find_endpoint(&self, endpoint_url: &str) -> Option<Endpoint>
fn server_certificate_as_byte_string(&self) -> ByteString
fn create_subscription_id(&mut self) -> UInt32
fn validate_username_identity_token(&self, _: &UserNameIdentityToken) -> bool
Validate the username identity token