pub struct Read { /* private fields */ }Expand description
Builder for a call to the Read service.
See OPC UA Part 4 - Services 5.10.2 for complete description of the service and error responses.
Implementations§
Source§impl Read
impl Read
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 Read service, setting header parameters manually.
Sourcepub fn timestamps_to_return(self, timestamps: TimestampsToReturn) -> Self
pub fn timestamps_to_return(self, timestamps: TimestampsToReturn) -> Self
Set timestamps to return.
Sourcepub fn nodes_to_read(self, nodes_to_read: Vec<ReadValueId>) -> Self
pub fn nodes_to_read(self, nodes_to_read: Vec<ReadValueId>) -> Self
Set nodes to read, overwriting any that were set previously.
Sourcepub fn node(self, node: ReadValueId) -> Self
pub fn node(self, node: ReadValueId) -> Self
Add a node to read.
Source§impl Read
impl Read
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.
Trait Implementations§
Source§impl UARequest for Read
impl UARequest for Read
Source§type Out = ReadResponse
type Out = ReadResponse
Response message type.
Source§async fn send<'b>(
self,
channel: &'b AsyncSecureChannel,
) -> Result<Self::Out, StatusCode>where
Self: 'b,
async fn send<'b>(
self,
channel: &'b AsyncSecureChannel,
) -> Result<Self::Out, StatusCode>where
Self: 'b,
Send the message and wait for a response.
Auto Trait Implementations§
impl Freeze for Read
impl !RefUnwindSafe for Read
impl Send for Read
impl Sync for Read
impl Unpin for Read
impl UnsafeUnpin for Read
impl !UnwindSafe for Read
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