pub struct OpcDaWrapper<C: ServerConnector = ComConnector> { /* private fields */ }Expand description
Concrete OpcProvider implementation for Windows OPC DA.
Heavy-weight implementation that uses the opc_da crate for
native COM interop.
Implementations§
Source§impl<C: ServerConnector> OpcDaWrapper<C>
impl<C: ServerConnector> OpcDaWrapper<C>
Trait Implementations§
Source§impl Default for OpcDaWrapper<ComConnector>
impl Default for OpcDaWrapper<ComConnector>
Source§impl<C: ServerConnector + 'static> OpcProvider for OpcDaWrapper<C>
impl<C: ServerConnector + 'static> OpcProvider for OpcDaWrapper<C>
Source§fn list_servers<'life0, 'life1, 'async_trait>(
&'life0 self,
host: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_servers<'life0, 'life1, 'async_trait>(
&'life0 self,
host: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List available OPC DA servers on the given host. Read more
Browse tags recursively, pushing discoveries to
tags_sink. Read moreSource§fn read_tag_values<'life0, 'life1, 'async_trait>(
&'life0 self,
server: &'life1 str,
tag_ids: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<TagValue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_tag_values<'life0, 'life1, 'async_trait>(
&'life0 self,
server: &'life1 str,
tag_ids: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<TagValue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read current values for the given tag IDs. Read more
Source§fn write_tag_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
server: &'life1 str,
tag_id: &'life2 str,
value: OpcValue,
) -> Pin<Box<dyn Future<Output = Result<WriteResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn write_tag_value<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
server: &'life1 str,
tag_id: &'life2 str,
value: OpcValue,
) -> Pin<Box<dyn Future<Output = Result<WriteResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Write a value to a single OPC DA tag. Read more
Auto Trait Implementations§
impl<C> Freeze for OpcDaWrapper<C>
impl<C> RefUnwindSafe for OpcDaWrapper<C>where
C: RefUnwindSafe,
impl<C> Send for OpcDaWrapper<C>
impl<C> Sync for OpcDaWrapper<C>
impl<C> Unpin for OpcDaWrapper<C>
impl<C> UnsafeUnpin for OpcDaWrapper<C>
impl<C> UnwindSafe for OpcDaWrapper<C>where
C: RefUnwindSafe,
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