[−][src]Struct opcua_server::config::ServerConfig
Fields
application_name: StringAn id for this server
application_uri: StringA description for this server
product_uri: StringProduct url
pki_dir: PathBufpki folder, either absolute or relative to executable
create_sample_keypair: boolAutocreates public / private keypair if they don't exist. For testing/samples only since you do not have control of the values
trust_client_certs: boolAuto 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: TcpConfigtcp configuration information
limits: ServerLimitsServer 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]
application_name: T,
user_tokens: BTreeMap<String, ServerUserToken>,
endpoints: BTreeMap<String, ServerEndpoint>
) -> Self where
T: Into<String>,
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]
&self,
endpoint_url: &str,
security_policy: SecurityPolicy,
security_mode: MessageSecurityMode
) -> Option<&ServerEndpoint>
Find the first endpoint that matches the specified url, security policy and message security mode.
Trait Implementations
impl Clone for ServerConfig[src]
fn clone(&self) -> ServerConfig[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Config for ServerConfig[src]
fn is_valid(&self) -> bool[src]
fn application_name(&self) -> UAString[src]
fn application_uri(&self) -> UAString[src]
fn product_uri(&self) -> UAString[src]
fn application_type(&self) -> ApplicationType[src]
fn discovery_urls(&self) -> Option<Vec<UAString>>[src]
fn save(&self, path: &Path) -> Result<(), ()>[src]
fn load<A>(path: &Path) -> Result<A, ()> where
A: Config + for<'de> Deserialize<'de>, [src]
A: Config + for<'de> Deserialize<'de>,
fn application_description(&self) -> ApplicationDescription[src]
impl Debug for ServerConfig[src]
impl Default for ServerConfig[src]
impl<'de> Deserialize<'de> for ServerConfig[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl From<ServerConfig> for Server[src]
fn from(config: ServerConfig) -> Server[src]
impl PartialEq<ServerConfig> for ServerConfig[src]
fn eq(&self, other: &ServerConfig) -> bool[src]
fn ne(&self, other: &ServerConfig) -> bool[src]
impl Serialize for ServerConfig[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for ServerConfig[src]
Auto Trait Implementations
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,