[][src]Struct opcua_server::config::ServerEndpoint

pub struct ServerEndpoint {
    pub path: String,
    pub security_policy: String,
    pub security_mode: String,
    pub security_level: u8,
    pub user_token_ids: BTreeSet<String>,
}

Fields

path: String

Endpoint path

security_policy: String

Security policy

security_mode: String

Security mode

security_level: u8

Security level, higher being more secure

user_token_ids: BTreeSet<String>

User tokens

Methods

impl ServerEndpoint[src]

pub fn new<T>(
    path: T,
    security_policy: SecurityPolicy,
    security_mode: MessageSecurityMode,
    user_token_ids: &[String]
) -> Self where
    T: Into<String>, 
[src]

pub fn security_level(security_policy: SecurityPolicy) -> u8[src]

Recommends a security level for the supplied security policy

pub fn new_none<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic128rsa15_sign<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic128rsa15_sign_encrypt<T>(
    path: T,
    user_token_ids: &[String]
) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic256_sign<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic256_sign_encrypt<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic256sha256_sign<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic256sha256_sign_encrypt<T>(
    path: T,
    user_token_ids: &[String]
) -> Self where
    T: Into<String>, 
[src]

pub fn is_valid(
    &self,
    id: &str,
    user_tokens: &BTreeMap<String, ServerUserToken>
) -> bool
[src]

pub fn security_policy(&self) -> SecurityPolicy[src]

pub fn message_security_mode(&self) -> MessageSecurityMode[src]

pub fn endpoint_url(&self, base_endpoint: &str) -> String[src]

pub fn supports_anonymous(&self) -> bool[src]

Test if the endpoint supports anonymous users

pub fn supports_user_token_id(&self, id: &str) -> bool[src]

Trait Implementations

impl PartialEq<ServerEndpoint> for ServerEndpoint[src]

impl<'a> From<(&'a str, SecurityPolicy, MessageSecurityMode, &'a [&'a str])> for ServerEndpoint[src]

Convenience method to make an endpoint from a tuple

impl Clone for ServerEndpoint[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ServerEndpoint[src]

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

impl Serialize for ServerEndpoint[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into 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> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T