pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub async fn connect(addr: &str) -> Result<Self>
pub async fn with_route_path(addr: &str, route: RoutePath) -> Result<Self>
pub fn from_eip_client(client: EipClient) -> Result<Self>
pub fn events(&self) -> Receiver<ConnectionEvent>
pub fn with_retry(&self, policy: RetryPolicy) -> RetryClient
pub async fn read_tag(&self, tag_name: &str) -> Result<PlcValue>
pub async fn write_tag(&self, tag_name: &str, value: PlcValue) -> Result<()>
pub async fn write_string_tag(&self, tag_name: &str, value: &str) -> Result<()>
pub async fn write_udt_member( &self, udt_tag_name: &str, member_name: &str, value: PlcValue, ) -> Result<()>
pub async fn write_udt_array_member( &self, udt_array_element_path: &str, member_name: &str, value: PlcValue, ) -> Result<()>
pub async fn execute_batch( &self, operations: &[BatchOperation], ) -> Result<Vec<BatchResult>>
pub async fn check_health(&self) -> Result<bool>
pub async fn get_diagnostics_snapshot(&self) -> Result<DiagnosticsSnapshot>
pub async fn get_diagnostics_snapshot_detailed( &self, ) -> Result<DiagnosticsSnapshot>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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