rsiot-modbus-client-config 0.0.2

Конфигурация для Modbus клиента
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::net::IpAddr;

use super::{read, write};

#[derive(Clone, Debug)]
pub enum ClientConfig<TMsg> {
    Tcp(TcpClientConfig<TMsg>),
    Rtu,
}

#[derive(Clone, Debug)]
pub struct TcpClientConfig<TMsg> {
    pub host: IpAddr,
    pub port: u16,
    pub read_config: Vec<read::Request<TMsg>>,
    pub write_config: write::Request<TMsg>,
}