pub struct Call { /* private fields */ }Expand description
Calls a list of methods on the server by sending a CallRequest to the server.
See OPC UA Part 4 - Services 5.11.2 for complete description of the service and error responses.
Implementations§
Source§impl Call
impl Call
Sourcepub fn diagnostics(self, bits: DiagnosticBits) -> Call
pub fn diagnostics(self, bits: DiagnosticBits) -> Call
Set requested diagnostic bits.
Sourcepub fn timeout(self, timeout: Duration) -> Call
pub fn timeout(self, timeout: Duration) -> Call
Set the timeout for this request. Defaults to session timeout.
Sourcepub fn audit_entry_id(self, entry: impl Into<UAString>) -> Call
pub fn audit_entry_id(self, entry: impl Into<UAString>) -> Call
Set the audit entry ID for the request.
Sourcepub fn header(&self) -> &RequestHeader
pub fn header(&self) -> &RequestHeader
Get the request header.
Source§impl Call
impl Call
Sourcepub fn new_manual(
session_id: u32,
timeout: Duration,
auth_token: NodeId,
request_handle: u32,
) -> Call
pub fn new_manual( session_id: u32, timeout: Duration, auth_token: NodeId, request_handle: u32, ) -> Call
Construct a new call to the Call service, setting header parameters manually.
Sourcepub fn methods_to_call(self, methods: Vec<CallMethodRequest>) -> Call
pub fn methods_to_call(self, methods: Vec<CallMethodRequest>) -> Call
Set the list of methods to call.
Sourcepub fn method(self, method: impl Into<CallMethodRequest>) -> Call
pub fn method(self, method: impl Into<CallMethodRequest>) -> Call
Add a method to call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Call
impl !RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
impl !UnwindSafe for Call
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