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

The TCP port to use for communication (Default: 502)

Timeout when reading from the TCP socket (Default: infinite)

Timeout when writing to the TCP socket (Default: infinite)

The modbus Unit Identifier used in the modbus layer (Default: 1)

Trait Implementations

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Config
[src]

impl Default for Config
[src]

Returns the "default value" for a type. Read more