1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Modbus TCP server components.
//!
//! This module provides a modular, high-performance Modbus TCP server implementation
//! with the following features:
//!
//! - Connection pooling with limits and tracking
//! - MBAP (Modbus Application Protocol) frame codec
//! - Metrics collection for monitoring
//! - Graceful shutdown support
//! - Extensible handler architecture
//!
//! # Architecture
//!
//! ```text
//! ┌────────────────────────────────────────────────────────────┐
//! │ ModbusTcpServer │
//! │ ┌──────────────┐ ┌──────────────┐ ┌──────────────────┐ │
//! │ │ TcpListener │──│ConnectionPool│──│ HandlerRegistry │ │
//! │ └──────────────┘ └──────────────┘ └──────────────────┘ │
//! │ │ │ │ │
//! │ ▼ ▼ ▼ │
//! │ ┌──────────────────────────────────────────────────────┐ │
//! │ │ Connection Handlers │ │
//! │ │ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ │ │
//! │ │ │Conn #1 │ │Conn #2 │ │Conn #3 │ │ ... │ │ │
//! │ │ └────────┘ └────────┘ └────────┘ └────────┘ │ │
//! │ │ │ │ │ │ │ │
//! │ │ ▼ ▼ ▼ ▼ │ │
//! │ │ ┌──────────────────────────────────────────────┐ │ │
//! │ │ │ MbapCodec (framing) │ │ │
//! │ │ └──────────────────────────────────────────────┘ │ │
//! │ └──────────────────────────────────────────────────────┘ │
//! │ │
//! │ ┌──────────────────────────────────────────────────────┐ │
//! │ │ ServerMetrics │ │
//! │ │ connections_total | requests_total | errors_total │ │
//! │ │ request_duration | active_connections │ │
//! │ └──────────────────────────────────────────────────────┘ │
//! └────────────────────────────────────────────────────────────┘
//! ```
pub use ;
pub use ;
pub use ServerMetrics;
pub use ;