pub struct CloseSession { /* private fields */ }Expand description
Close the session by sending a CloseSessionRequest to the server.
Note: Avoid using this on an session managed by the Session type,
instead call Session::disconnect.
Implementations§
Source§impl CloseSession
impl CloseSession
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 CloseSession
impl CloseSession
Sourcepub fn new_manual(
session_id: u32,
timeout: Duration,
auth_token: NodeId,
request_handle: IntegerId,
) -> Self
pub fn new_manual( session_id: u32, timeout: Duration, auth_token: NodeId, request_handle: IntegerId, ) -> Self
Create a new CloseSession request.
Sourcepub fn delete_subscriptions(self, delete_subscriptions: bool) -> Self
pub fn delete_subscriptions(self, delete_subscriptions: bool) -> Self
Set DeleteSubscriptions, indicating to the server whether it should
delete subscriptions immediately or wait for them to expire.
Trait Implementations§
Source§impl Clone for CloseSession
impl Clone for CloseSession
Source§fn clone(&self) -> CloseSession
fn clone(&self) -> CloseSession
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 CloseSession
impl Debug for CloseSession
Source§impl UARequest for CloseSession
impl UARequest for CloseSession
Source§type Out = CloseSessionResponse
type Out = CloseSessionResponse
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 CloseSession
impl !RefUnwindSafe for CloseSession
impl Send for CloseSession
impl Sync for CloseSession
impl Unpin for CloseSession
impl UnsafeUnpin for CloseSession
impl !UnwindSafe for CloseSession
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