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) -> ActivateSession
pub fn diagnostics(self, bits: DiagnosticBits) -> ActivateSession
Set requested diagnostic bits.
Sourcepub fn timeout(self, timeout: Duration) -> ActivateSession
pub fn timeout(self, timeout: Duration) -> ActivateSession
Set the timeout for this request. Defaults to session timeout.
Sourcepub fn audit_entry_id(self, entry: impl Into<UAString>) -> ActivateSession
pub fn audit_entry_id(self, entry: impl Into<UAString>) -> ActivateSession
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: u32,
) -> ActivateSession
pub fn new_manual( endpoint: EndpointDescription, session_id: u32, timeout: Duration, auth_token: NodeId, request_handle: u32, ) -> ActivateSession
Create a new ActivateSession request.
Sourcepub fn identity_token(self, identity_token: IdentityToken) -> ActivateSession
pub fn identity_token(self, identity_token: IdentityToken) -> ActivateSession
Set the identity token.
Sourcepub fn private_key(self, private_key: PKey<RsaPrivateKey>) -> ActivateSession
pub fn private_key(self, private_key: PKey<RsaPrivateKey>) -> ActivateSession
Set the client private key.
Sourcepub fn locale_ids(self, locale_ids: Vec<UAString>) -> ActivateSession
pub fn locale_ids(self, locale_ids: Vec<UAString>) -> ActivateSession
Set the requested list of locales.
Sourcepub fn locale_id(self, locale_id: impl Into<UAString>) -> ActivateSession
pub fn locale_id(self, locale_id: impl Into<UAString>) -> ActivateSession
Add a requested locale with the given ID.
Sourcepub fn client_software_certificates(
self,
certificates: Vec<SignedSoftwareCertificate>,
) -> ActivateSession
pub fn client_software_certificates( self, certificates: Vec<SignedSoftwareCertificate>, ) -> ActivateSession
Set the client software certificates.
Sourcepub fn client_software_certificate(
self,
certificate: SignedSoftwareCertificate,
) -> ActivateSession
pub fn client_software_certificate( self, certificate: SignedSoftwareCertificate, ) -> ActivateSession
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<<ActivateSession as UARequest>::Out, StatusCode>where
ActivateSession: 'a,
async fn send<'a>(
self,
channel: &'a AsyncSecureChannel,
) -> Result<<ActivateSession as UARequest>::Out, StatusCode>where
ActivateSession: '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