Struct modbus::tcp::Config
[−]
[src]
pub struct Config { pub tcp_port: u16, pub tcp_read_timeout: Option<Duration>, pub tcp_write_timeout: Option<Duration>, pub modbus_uid: u8, }
Config structure for more control over the tcp socket settings
Fields
tcp_port: u16
The TCP port to use for communication (Default: 502
)
tcp_read_timeout: Option<Duration>
Timeout when reading from the TCP socket (Default: infinite
)
tcp_write_timeout: Option<Duration>
Timeout when writing to the TCP socket (Default: infinite
)
modbus_uid: u8
The modbus Unit Identifier used in the modbus layer (Default: 1
)
Trait Implementations
impl Clone for Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more