pub struct UaClient { /* private fields */ }Implementations§
Source§impl UaClient
impl UaClient
pub fn set_verify_cert_metadata(&self, on: bool)
pub fn new() -> Self
pub async fn connect( &self, endpoint_url: &str, endpoint: Option<&EndpointInfo>, auth: &AuthSpec, ) -> Result<()>
Sourcepub async fn browse_path(&self, node_id: &NodeId) -> Result<String>
pub async fn browse_path(&self, node_id: &NodeId) -> Result<String>
Build the OPC UA Part 4 Annex A.2 RelativePath text for node_id by
walking inverse hierarchical references back to the Root folder.
Sourcepub async fn node_path(&self, node_id: &NodeId) -> Result<Vec<NodeId>>
pub async fn node_path(&self, node_id: &NodeId) -> Result<Vec<NodeId>>
Return the path of NodeIds from the topmost reachable ancestor (typically
Root) down to and including node_id.
Sourcepub async fn resolve_browse_path(&self, text: &str) -> Result<NodeId>
pub async fn resolve_browse_path(&self, text: &str) -> Result<NodeId>
Resolve a textual browse path like “/Objects/Server/ServerStatus” into the matching NodeId by walking hierarchical references from RootFolder. A leading “Root” segment is accepted as a no-op. Segments may be plain names (namespace 0) or “N:Name” for explicit namespaces.
pub async fn discover_endpoints( &self, endpoint_url: &str, ) -> Result<Vec<EndpointInfo>>
pub async fn disconnect(&self) -> Result<()>
pub async fn browse_children(&self, node_id: &NodeId) -> Result<Vec<TreeChild>>
pub async fn read_node_summary(&self, node_id: &NodeId) -> Result<NodeSummary>
pub async fn read_method_signature( &self, method_node_id: &NodeId, ) -> Result<MethodSignature>
pub async fn call_method( &self, parent_object: &NodeId, method_node_id: &NodeId, inputs: Vec<Variant>, ) -> Result<MethodCallOutcome>
pub async fn browse_references( &self, node_id: &NodeId, ) -> Result<Vec<ReferenceRow>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UaClient
impl !RefUnwindSafe for UaClient
impl Send for UaClient
impl Sync for UaClient
impl Unpin for UaClient
impl UnsafeUnpin for UaClient
impl !UnwindSafe for UaClient
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.