pub struct CreateMonitoredItems<'a> { /* private fields */ }Expand description
Creates monitored items on a subscription by sending a CreateMonitoredItemsRequest to the server.
See OPC UA Part 4 - Services 5.12.2 for complete description of the service and error responses.
Implementations§
Source§impl<'a> CreateMonitoredItems<'a>
impl<'a> CreateMonitoredItems<'a>
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<'a> CreateMonitoredItems<'a>
impl<'a> CreateMonitoredItems<'a>
Sourcepub fn new(subscription_id: u32, session: &'a Session) -> Self
pub fn new(subscription_id: u32, session: &'a Session) -> Self
Construct a new call to the CreateMonitoredItems service.
Sourcepub fn new_manual(
subscription_id: u32,
monitored_item_handle: &'a AtomicHandle,
session_id: u32,
timeout: Duration,
auth_token: NodeId,
request_handle: IntegerId,
) -> Self
pub fn new_manual( subscription_id: u32, monitored_item_handle: &'a AtomicHandle, session_id: u32, timeout: Duration, auth_token: NodeId, request_handle: IntegerId, ) -> Self
Construct a new call to the CreateMonitoredItems service, setting header parameters manually.
Sourcepub fn timestamps_to_return(
self,
timestamps_to_return: TimestampsToReturn,
) -> Self
pub fn timestamps_to_return( self, timestamps_to_return: TimestampsToReturn, ) -> Self
An enumeration that specifies the timestamp Attributes to be transmitted for each MonitoredItem.
Sourcepub fn items_to_create(
self,
items_to_create: Vec<MonitoredItemCreateRequest>,
) -> Self
pub fn items_to_create( self, items_to_create: Vec<MonitoredItemCreateRequest>, ) -> Self
Set the monitored items to create, overwriting any that were added previously.
Sourcepub fn item(self, item: MonitoredItemCreateRequest) -> Self
pub fn item(self, item: MonitoredItemCreateRequest) -> Self
Add a monitored item to create.
Trait Implementations§
Source§impl<'a> Clone for CreateMonitoredItems<'a>
impl<'a> Clone for CreateMonitoredItems<'a>
Source§fn clone(&self) -> CreateMonitoredItems<'a>
fn clone(&self) -> CreateMonitoredItems<'a>
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 CreateMonitoredItems<'_>
impl UARequest for CreateMonitoredItems<'_>
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<'a> Freeze for CreateMonitoredItems<'a>
impl<'a> !RefUnwindSafe for CreateMonitoredItems<'a>
impl<'a> Send for CreateMonitoredItems<'a>
impl<'a> Sync for CreateMonitoredItems<'a>
impl<'a> Unpin for CreateMonitoredItems<'a>
impl<'a> UnsafeUnpin for CreateMonitoredItems<'a>
impl<'a> !UnwindSafe for CreateMonitoredItems<'a>
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