pub struct SetPublishingMode { /* private fields */ }Expand description
Changes the publishing mode of subscriptions by sending a SetPublishingModeRequest to the server.
See OPC UA Part 4 - Services 5.13.4 for complete description of the service and error responses.
Implementations§
Source§impl SetPublishingMode
impl SetPublishingMode
Sourcepub fn diagnostics(self, bits: DiagnosticBits) -> SetPublishingMode
pub fn diagnostics(self, bits: DiagnosticBits) -> SetPublishingMode
Set requested diagnostic bits.
Sourcepub fn timeout(self, timeout: Duration) -> SetPublishingMode
pub fn timeout(self, timeout: Duration) -> SetPublishingMode
Set the timeout for this request. Defaults to session timeout.
Sourcepub fn audit_entry_id(self, entry: impl Into<UAString>) -> SetPublishingMode
pub fn audit_entry_id(self, entry: impl Into<UAString>) -> SetPublishingMode
Set the audit entry ID for the request.
Sourcepub fn header(&self) -> &RequestHeader
pub fn header(&self) -> &RequestHeader
Get the request header.
Source§impl SetPublishingMode
impl SetPublishingMode
Sourcepub fn new(publishing_enabled: bool, session: &Session) -> SetPublishingMode
pub fn new(publishing_enabled: bool, session: &Session) -> SetPublishingMode
Construct a new call to the SetPublishingMode service.
Sourcepub fn new_manual(
publishing_enabled: bool,
session_id: u32,
timeout: Duration,
auth_token: NodeId,
request_handle: u32,
) -> SetPublishingMode
pub fn new_manual( publishing_enabled: bool, session_id: u32, timeout: Duration, auth_token: NodeId, request_handle: u32, ) -> SetPublishingMode
Construct a new call to the SetPublishingMode service, setting header parameters manually.
Sourcepub fn subscription_ids(self, subscription_ids: Vec<u32>) -> SetPublishingMode
pub fn subscription_ids(self, subscription_ids: Vec<u32>) -> SetPublishingMode
Set the subscription IDs to update, overwriting any that were added previously.
Sourcepub fn subscription(self, subscription_id: u32) -> SetPublishingMode
pub fn subscription(self, subscription_id: u32) -> SetPublishingMode
Add a subscription ID to update.
Trait Implementations§
Source§impl Clone for SetPublishingMode
impl Clone for SetPublishingMode
Source§fn clone(&self) -> SetPublishingMode
fn clone(&self) -> SetPublishingMode
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 UARequest for SetPublishingMode
impl UARequest for SetPublishingMode
Source§type Out = SetPublishingModeResponse
type Out = SetPublishingModeResponse
Response message type.
Source§async fn send<'a>(
self,
channel: &'a AsyncSecureChannel,
) -> Result<<SetPublishingMode as UARequest>::Out, StatusCode>where
SetPublishingMode: 'a,
async fn send<'a>(
self,
channel: &'a AsyncSecureChannel,
) -> Result<<SetPublishingMode as UARequest>::Out, StatusCode>where
SetPublishingMode: 'a,
Send the message and wait for a response.
Auto Trait Implementations§
impl Freeze for SetPublishingMode
impl !RefUnwindSafe for SetPublishingMode
impl Send for SetPublishingMode
impl Sync for SetPublishingMode
impl Unpin for SetPublishingMode
impl UnsafeUnpin for SetPublishingMode
impl !UnwindSafe for SetPublishingMode
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