pub struct TransferSubscriptions { /* private fields */ }Expand description
Transfers Subscriptions and their MonitoredItems from one Session to another. For example, a Client may need to reopen a Session and then transfer its Subscriptions to that Session. It may also be used by one Client to take over a Subscription from another Client by transferring the Subscription to its Session.
Note that if you call this manually, you will need to register the
subscriptions in the subscription state (Session::subscription_state) in order to
receive notifications.
See OPC UA Part 4 - Services 5.13.7 for complete description of the service and error responses.
Implementations§
Source§impl TransferSubscriptions
impl TransferSubscriptions
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 TransferSubscriptions
impl TransferSubscriptions
Sourcepub fn new(session: &Session) -> Self
pub fn new(session: &Session) -> Self
Construct a new call to the TransferSubscriptions service.
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
Construct a new call to the TransferSubscriptions service, setting header parameters manually.
Sourcepub fn send_initial_values(self, send_initial_values: bool) -> Self
pub fn send_initial_values(self, send_initial_values: bool) -> Self
A boolean parameter with the following values - true the first
publish response shall contain the current values of all monitored items in the subscription,
false, the first publish response shall contain only the value changes since the last
publish response was sent.
Sourcepub fn subscription_ids(self, subscription_ids: Vec<u32>) -> Self
pub fn subscription_ids(self, subscription_ids: Vec<u32>) -> Self
Set the subscription IDs to transfer, overwriting any that were added previously.
Sourcepub fn subscription(self, subscription_id: u32) -> Self
pub fn subscription(self, subscription_id: u32) -> Self
Add a subscription ID to transfer.
Trait Implementations§
Source§impl Clone for TransferSubscriptions
impl Clone for TransferSubscriptions
Source§fn clone(&self) -> TransferSubscriptions
fn clone(&self) -> TransferSubscriptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more