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) -> 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 SetPublishingMode
impl SetPublishingMode
Sourcepub fn new(publishing_enabled: bool, session: &Session) -> Self
pub fn new(publishing_enabled: bool, session: &Session) -> Self
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: IntegerId,
) -> Self
pub fn new_manual( publishing_enabled: bool, session_id: u32, timeout: Duration, auth_token: NodeId, request_handle: IntegerId, ) -> Self
Construct a new call to the SetPublishingMode service, setting header parameters manually.
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 update, 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 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<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 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