pub struct ActivateSession { /* private fields */ }Expand description
Sends an ActivateSessionRequest to the server to activate the session tied to
the secure channel.
See OPC UA Part 4 - Services 5.6.3 for complete description of the service and error responses.
Note: Avoid calling this on sessions managed by the Session type. Session activation
is handled automatically as part of connect/reconnect logic.
Implementations§
Source§impl ActivateSession
impl ActivateSession
Sourcepub fn diagnostics(self, bits: DiagnosticBits) -> Self
pub fn diagnostics(self, bits: DiagnosticBits) -> Self
Set requested diagnostic bits.
Sourcepub fn timeout(self, timeout: Duration) -> Self
pub fn timeout(self, timeout: Duration) -> Self
Set the timeout for this request. Defaults to session timeout.
Sourcepub fn audit_entry_id(self, entry: impl Into<UAString>) -> Self
pub fn audit_entry_id(self, entry: impl Into<UAString>) -> Self
Set the audit entry ID for the request.
Sourcepub fn header(&self) -> &RequestHeader
pub fn header(&self) -> &RequestHeader
Get the request header.
Source§impl ActivateSession
impl ActivateSession
Sourcepub fn new_manual(
endpoint: EndpointDescription,
session_id: u32,
timeout: Duration,
auth_token: NodeId,
request_handle: IntegerId,
) -> Self
pub fn new_manual( endpoint: EndpointDescription, session_id: u32, timeout: Duration, auth_token: NodeId, request_handle: IntegerId, ) -> Self
Create a new ActivateSession request.
Sourcepub fn identity_token(self, identity_token: IdentityToken) -> Self
pub fn identity_token(self, identity_token: IdentityToken) -> Self
Set the identity token.
Sourcepub fn private_key(self, private_key: PKey<RsaPrivateKey>) -> Self
pub fn private_key(self, private_key: PKey<RsaPrivateKey>) -> Self
Set the client private key.
Sourcepub fn locale_ids(self, locale_ids: Vec<UAString>) -> Self
pub fn locale_ids(self, locale_ids: Vec<UAString>) -> Self
Set the requested list of locales.
Sourcepub fn locale_id(self, locale_id: impl Into<UAString>) -> Self
pub fn locale_id(self, locale_id: impl Into<UAString>) -> Self
Add a requested locale with the given ID.
Sourcepub fn client_software_certificates(
self,
certificates: Vec<SignedSoftwareCertificate>,
) -> Self
pub fn client_software_certificates( self, certificates: Vec<SignedSoftwareCertificate>, ) -> Self
Set the client software certificates.
Sourcepub fn client_software_certificate(
self,
certificate: SignedSoftwareCertificate,
) -> Self
pub fn client_software_certificate( self, certificate: SignedSoftwareCertificate, ) -> Self
Add a client software certificate.
Trait Implementations§
Source§impl Clone for ActivateSession
impl Clone for ActivateSession
Source§fn clone(&self) -> ActivateSession
fn clone(&self) -> ActivateSession
Returns a duplicate 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 Debug for ActivateSession
impl Debug for ActivateSession
Source§impl UARequest for ActivateSession
impl UARequest for ActivateSession
Source§type Out = ActivateSessionResponse
type Out = ActivateSessionResponse
Response message type.
Source§async fn send<'a>(
self,
channel: &'a AsyncSecureChannel,
) -> Result<Self::Out, StatusCode>where
Self: 'a,
async fn send<'a>(
self,
channel: &'a AsyncSecureChannel,
) -> Result<Self::Out, StatusCode>where
Self: 'a,
Send the message and wait for a response.
Auto Trait Implementations§
impl Freeze for ActivateSession
impl !RefUnwindSafe for ActivateSession
impl Send for ActivateSession
impl Sync for ActivateSession
impl Unpin for ActivateSession
impl UnsafeUnpin for ActivateSession
impl !UnwindSafe for ActivateSession
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