pub struct ClientConfig { /* private fields */ }
Expand description
Client OPC UA configuration
Implementations§
Source§impl ClientConfig
impl ClientConfig
Sourcepub fn session_retry_policy(&self) -> SessionRetryPolicy
pub fn session_retry_policy(&self) -> SessionRetryPolicy
Get the configured session retry policy.
Sourcepub fn client_identity_token(
&self,
user_token_id: impl Into<String>,
) -> Option<IdentityToken>
pub fn client_identity_token( &self, user_token_id: impl Into<String>, ) -> Option<IdentityToken>
Returns an identity token corresponding to the matching user in the configuration. Or None if there is no matching token.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Config for ClientConfig
impl Config for ClientConfig
Source§fn validate(&self) -> Result<(), Vec<String>>
fn validate(&self) -> Result<(), Vec<String>>
Test if the config is valid, which requires at the least that
Source§fn application_name(&self) -> UAString
fn application_name(&self) -> UAString
Get the application name.
Source§fn application_uri(&self) -> UAString
fn application_uri(&self) -> UAString
Get the application URI.
Source§fn product_uri(&self) -> UAString
fn product_uri(&self) -> UAString
Get the configured product URI.
Source§fn application_type(&self) -> ApplicationType
fn application_type(&self) -> ApplicationType
Get the application type.
Source§fn save(&self, path: &Path) -> Result<(), ConfigError>
fn save(&self, path: &Path) -> Result<(), ConfigError>
Save the configuration object to a file.
Source§fn load<A>(path: &Path) -> Result<A, ConfigError>where
A: for<'de> Config + for<'de> Deserialize<'de>,
fn load<A>(path: &Path) -> Result<A, ConfigError>where
A: for<'de> Config + for<'de> Deserialize<'de>,
Load the configuration object from the given path.
Source§fn discovery_urls(&self) -> Option<Vec<UAString>>
fn discovery_urls(&self) -> Option<Vec<UAString>>
Get the registered discovery URLs for this application.
Source§fn application_description(&self) -> ApplicationDescription
fn application_description(&self) -> ApplicationDescription
Create an application description for the configured application.
Source§impl Debug for ClientConfig
impl Debug for ClientConfig
Source§impl Default for ClientConfig
impl Default for ClientConfig
Source§impl<'de> Deserialize<'de> for ClientConfig
impl<'de> Deserialize<'de> for ClientConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClientConfig
impl PartialEq for ClientConfig
Source§impl Serialize for ClientConfig
impl Serialize for ClientConfig
impl StructuralPartialEq for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more