pub struct PlcManager { /* private fields */ }๐Deprecated since 1.2.0:
PlcManager predates Fleet and cannot provide concurrent pooled use through its &mut self API; use Fleet for multi-PLC management. The type will be removed in 2.0.
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
Sourcepub async fn get_client(&mut self, address: &str) -> Result<&mut EipClient>
pub async fn get_client(&mut self, address: &str) -> Result<&mut EipClient>
Returns a connected client for address, creating the legacy pool entry if needed.
Trait Implementationsยง
Sourceยงimpl Debug for PlcManager
impl Debug for PlcManager
Auto Trait Implementationsยง
impl !RefUnwindSafe for PlcManager
impl !UnwindSafe for PlcManager
impl Freeze for PlcManager
impl Send for PlcManager
impl Sync for PlcManager
impl Unpin for PlcManager
impl UnsafeUnpin 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