pub struct HistoryUpdate { /* private fields */ }Expand description
Updates historical values. The caller is expected to provide one or more history update operations in a slice of HistoryUpdateAction enums which are one of the following:
UpdateDataDetailsUpdateStructureDataDetailsUpdateEventDetailsDeleteRawModifiedDetailsDeleteAtTimeDetailsDeleteEventDetails
See OPC UA Part 4 - Services 5.10.5 for complete description of the service and error responses.
Implementations§
Source§impl HistoryUpdate
impl HistoryUpdate
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 HistoryUpdate
impl HistoryUpdate
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 HistoryUpdate service, setting header parameters manually.
Sourcepub fn details(self, details: Vec<HistoryUpdateAction>) -> Self
pub fn details(self, details: Vec<HistoryUpdateAction>) -> Self
Set the history update actions to perform.
Sourcepub fn action(self, action: impl Into<HistoryUpdateAction>) -> Self
pub fn action(self, action: impl Into<HistoryUpdateAction>) -> Self
Add a history update action to the list.
Trait Implementations§
Source§impl Clone for HistoryUpdate
impl Clone for HistoryUpdate
Source§fn clone(&self) -> HistoryUpdate
fn clone(&self) -> HistoryUpdate
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 HistoryUpdate
impl Debug for HistoryUpdate
Source§impl UARequest for HistoryUpdate
impl UARequest for HistoryUpdate
Source§type Out = HistoryUpdateResponse
type Out = HistoryUpdateResponse
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 HistoryUpdate
impl !RefUnwindSafe for HistoryUpdate
impl Send for HistoryUpdate
impl Sync for HistoryUpdate
impl Unpin for HistoryUpdate
impl UnsafeUnpin for HistoryUpdate
impl !UnwindSafe for HistoryUpdate
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