modbus_relay/
lib.rs

1pub mod config;
2pub mod connection;
3pub mod errors;
4pub mod http_api;
5pub mod modbus;
6pub mod modbus_relay;
7pub mod rtu_transport;
8mod utils;
9
10pub use config::{ConnectionConfig, HttpConfig, LoggingConfig, RelayConfig, RtuConfig, TcpConfig};
11pub use config::{DataBits, Parity, RtsType, StopBits};
12pub use connection::BackoffStrategy;
13pub use connection::{ClientStats, ConnectionStats, IpStats};
14pub use connection::{ConnectionGuard, ConnectionManager};
15pub use errors::{
16    BackoffError, ClientErrorKind, ConfigValidationError, ConnectionError, FrameErrorKind,
17    IoOperation, ProtocolErrorKind, RelayError, RtsError, SerialErrorKind, TransportError,
18};
19pub use http_api::start_http_server;
20pub use modbus::{guess_response_size, ModbusProcessor};
21pub use modbus_relay::ModbusRelay;
22pub use rtu_transport::RtuTransport;