pub struct PlcConfig {
pub address: SocketAddr,
pub max_connections: u32,
pub connection_timeout: Duration,
pub health_check_interval: Duration,
pub max_packet_size: usize,
}Expand description
Configuration for a PLC connection
Fields§
§address: SocketAddrIP address and port of the PLC
max_connections: u32Maximum number of connections to maintain
connection_timeout: DurationConnection timeout in milliseconds
health_check_interval: DurationHealth check interval in milliseconds
max_packet_size: usizeMaximum packet size in bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlcConfig
impl RefUnwindSafe for PlcConfig
impl Send for PlcConfig
impl Sync for PlcConfig
impl Unpin for PlcConfig
impl UnwindSafe for PlcConfig
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