SecureChannelService

Trait SecureChannelService 

Source
pub trait SecureChannelService: Service {
    // Required methods
    fn open_secure_channel(&self) -> Result<(), StatusCode>;
    fn close_secure_channel(&self) -> Result<(), StatusCode>;
}
Expand description

SecureChannel Service set

Required Methods§

Source

fn open_secure_channel(&self) -> Result<(), StatusCode>

Sends an OpenSecureChannelRequest to the server

See OPC UA Part 4 - Services 5.5.2 for complete description of the service and error responses.

§Returns
  • Ok(()) - Success
  • Err(StatusCode) - Request failed, status code is the reason for failure
Source

fn close_secure_channel(&self) -> Result<(), StatusCode>

Sends a CloseSecureChannelRequest to the server which will cause the server to drop the connection.

See OPC UA Part 4 - Services 5.5.3 for complete description of the service and error responses.

§Returns
  • Ok(()) - Success
  • Err(StatusCode) - Request failed, status code is the reason for failure

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§