[−][src]Struct opcua_server::state::ServerState
Server state is any state associated with the server as a whole that individual sessions might be interested in. That includes configuration info etc.
Fields
application_uri: UAStringThe application URI
product_uri: UAStringThe product URI
application_name: LocalizedTextThe application name
base_endpoint: StringThe protocol, hostname and port formatted as a url, but less the path
start_time: DateTimeThe time the server started
namespaces: Vec<String>The list of namespaces
servers: Vec<String>The list of servers (by urn)
config: Arc<RwLock<ServerConfig>>Server configuration
server_certificate: Option<X509>Server public certificate read from config location or null if there is none
server_pkey: Option<PrivateKey>Server private key
last_subscription_id: u32The next subscription id - subscriptions are shared across the whole server. Initial value is a random u32.
max_subscriptions: usizeMaximum number of subscriptions per session, 0 means no limit (danger)
min_publishing_interval: DurationMinimum publishing interval
default_keep_alive_count: u32Default keep alive count
max_keep_alive_count: u32Maxmimum keep alive count
max_lifetime_count: u32Maximum lifetime count (3 times as large as max keep alive)
max_method_calls: usizeLimits on method service
max_nodes_per_node_management: usizeLimits on node management service
max_browse_paths_per_translate: usizeLimits on view service
state: ServerStateTypeabort: boolSets the abort flag that terminates the associated server
diagnostics: Arc<RwLock<ServerDiagnostics>>Diagnostic information
Methods
impl ServerState[src]
pub fn endpoints(
&self,
transport_profile_uris: &Option<Vec<UAString>>
) -> Option<Vec<EndpointDescription>>[src]
&self,
transport_profile_uris: &Option<Vec<UAString>>
) -> Option<Vec<EndpointDescription>>
pub fn endpoint_exists(
&self,
endpoint_url: &str,
security_policy: SecurityPolicy,
security_mode: MessageSecurityMode
) -> bool[src]
&self,
endpoint_url: &str,
security_policy: SecurityPolicy,
security_mode: MessageSecurityMode
) -> bool
pub fn new_endpoint_descriptions(
&self,
endpoint_url: &str
) -> Option<Vec<EndpointDescription>>[src]
&self,
endpoint_url: &str
) -> Option<Vec<EndpointDescription>>
Make matching endpoint descriptions for the specified url. If none match then None will be passed, therefore if Some is returned it will be guaranteed to contain at least one result.
pub fn discovery_urls(&self) -> Option<Vec<UAString>>[src]
pub fn application_type(&self) -> ApplicationType[src]
pub fn gateway_server_uri(&self) -> UAString[src]
pub fn abort(&mut self)[src]
pub fn state(&self) -> ServerStateType[src]
pub fn set_state(&mut self, state: ServerStateType)[src]
pub fn is_abort(&self) -> bool[src]
pub fn is_running(&self) -> bool[src]
pub fn max_method_calls(&self) -> usize[src]
pub fn max_nodes_per_node_management(&self) -> usize[src]
pub fn max_browse_paths_per_translate(&self) -> usize[src]
pub fn server_certificate_as_byte_string(&self) -> ByteString[src]
pub fn registered_server(&self) -> RegisteredServer[src]
pub fn create_subscription_id(&mut self) -> u32[src]
pub fn authenticate_endpoint(
&self,
endpoint_url: &str,
security_policy: SecurityPolicy,
security_mode: MessageSecurityMode,
user_identity_token: &ExtensionObject
) -> StatusCode[src]
&self,
endpoint_url: &str,
security_policy: SecurityPolicy,
security_mode: MessageSecurityMode,
user_identity_token: &ExtensionObject
) -> StatusCode
Authenticates access to an endpoint. The endpoint is described by its path, policy, mode and the token is supplied in an extension object that must be extracted and authenticated.
It is possible that the endpoint does not exist, or that the token is invalid / unsupported or that the token cannot be used with the end point. The return codes reflect the responses that ActivateSession would expect from a service call.
pub fn set_register_nodes_callbacks(
&mut self,
register_nodes_callback: Box<dyn RegisterNodes + Send + Sync>,
unregister_nodes_callback: Box<dyn UnregisterNodes + Send + Sync>
)[src]
&mut self,
register_nodes_callback: Box<dyn RegisterNodes + Send + Sync>,
unregister_nodes_callback: Box<dyn UnregisterNodes + Send + Sync>
)
Auto Trait Implementations
impl Send for ServerState
impl Sync for ServerState
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto 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.