Trait opcua_core::config::Config
source · [−]pub trait Config: Serialize {
fn is_valid(&self) -> bool;
fn application_name(&self) -> UAString;
fn application_uri(&self) -> UAString;
fn product_uri(&self) -> UAString;
fn application_type(&self) -> ApplicationType;
fn save(&self, path: &Path) -> Result<(), ()> { ... }
fn load<A>(path: &Path) -> Result<A, ()>
where
for<'de> A: Config + Deserialize<'de>,
{ ... }
fn discovery_urls(&self) -> Option<Vec<UAString>> { ... }
fn application_description(&self) -> ApplicationDescription { ... }
}
Expand description
A trait that handles the loading / saving and validity of configuration information for a client and/or server.