[][src]Struct opcua_server::config::ServerConfig

pub struct ServerConfig {
    pub application_name: String,
    pub application_uri: String,
    pub product_uri: String,
    pub pki_dir: PathBuf,
    pub create_sample_keypair: bool,
    pub trust_client_certs: bool,
    pub discovery_server_url: Option<String>,
    pub tcp_config: TcpConfig,
    pub limits: ServerLimits,
    pub locale_ids: Vec<String>,
    pub user_tokens: BTreeMap<String, ServerUserToken>,
    pub discovery_urls: Vec<String>,
    pub default_endpoint: Option<String>,
    pub endpoints: BTreeMap<String, ServerEndpoint>,
}

Fields

application_name: String

An id for this server

application_uri: String

A description for this server

product_uri: String

Product url

pki_dir: PathBuf

pki folder, either absolute or relative to executable

create_sample_keypair: bool

Autocreates public / private keypair if they don't exist. For testing/samples only since you do not have control of the values

trust_client_certs: bool

Auto trusts client certificates. For testing/samples only unless you're sure what you're doing.

discovery_server_url: Option<String>

Url to a discovery server - adding this string causes the server to assume you wish to register the server with a discovery server.

tcp_config: TcpConfig

tcp configuration information

limits: ServerLimits

Server limits

locale_ids: Vec<String>

Supported locale ids

user_tokens: BTreeMap<String, ServerUserToken>

User tokens

discovery_urls: Vec<String>

discovery endpoint url which may or may not be the same as the service endpoints below.

default_endpoint: Option<String>

Default endpoint id

endpoints: BTreeMap<String, ServerEndpoint>

Endpoints supported by the server

Implementations

impl ServerConfig[src]

pub fn new<T>(
    application_name: T,
    user_tokens: BTreeMap<String, ServerUserToken>,
    endpoints: BTreeMap<String, ServerEndpoint>
) -> Self where
    T: Into<String>, 
[src]

pub fn decoding_limits(&self) -> DecodingLimits[src]

pub fn add_endpoint(&mut self, id: &str, endpoint: ServerEndpoint)[src]

pub fn read_x509_thumbprints(&mut self)[src]

pub fn base_endpoint_url(&self) -> String[src]

Returns a opc.tcp://server:port url that paths can be appended onto

pub fn default_endpoint(&self) -> Option<&ServerEndpoint>[src]

Find the default endpoint

pub fn find_endpoint(
    &self,
    endpoint_url: &str,
    security_policy: SecurityPolicy,
    security_mode: MessageSecurityMode
) -> Option<&ServerEndpoint>
[src]

Find the first endpoint that matches the specified url, security policy and message security mode.

Trait Implementations

impl Clone for ServerConfig[src]

impl Config for ServerConfig[src]

impl Debug for ServerConfig[src]

impl Default for ServerConfig[src]

impl<'de> Deserialize<'de> for ServerConfig[src]

impl From<ServerConfig> for Server[src]

impl PartialEq<ServerConfig> for ServerConfig[src]

impl Serialize for ServerConfig[src]

impl StructuralPartialEq for ServerConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,