pub struct PlcManager { /* private fields */ }
Expand description
Manager for multiple PLC connections
Implementations§
Source§impl PlcManager
impl PlcManager
Sourcepub async fn get_connection(
&mut self,
address: SocketAddr,
) -> Result<&mut EipClient>
pub async fn get_connection( &mut self, address: SocketAddr, ) -> Result<&mut EipClient>
Gets a connection to a PLC
Sourcepub async fn check_health(&mut self)
pub async fn check_health(&mut self)
Performs health checks on all connections
Sourcepub fn cleanup_connections(&mut self)
pub fn cleanup_connections(&mut self)
Removes inactive connections
pub async fn get_client(&mut self, address: &str) -> Result<&mut EipClient>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlcManager
impl !RefUnwindSafe for PlcManager
impl Send for PlcManager
impl Sync for PlcManager
impl Unpin for PlcManager
impl !UnwindSafe for PlcManager
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