Skip to main content

rusty_modbus_tcp/
lib.rs

1//! Async TCP transport for Modbus/TCP on port 502.
2//!
3//! Manages connection lifecycle, TCP socket options, and provides the
4//! `TransportSink`/`TransportStream` trait implementations used by the
5//! client and server crates.
6
7#![forbid(unsafe_code)]
8#![warn(missing_docs, clippy::all, clippy::pedantic)]
9
10pub mod config;
11pub mod connect;
12pub mod error;
13pub mod listener;
14pub mod transport;
15
16pub use config::{AccessControl, AccessMode, TcpConfig, TcpServerConfig};
17pub use connect::{TcpRecvStream, TcpSink, TcpTransport};
18pub use error::{TcpError, TransportError};
19pub use listener::{ConnectionGuard, TcpServerListener};
20pub use transport::{TransportConnect, TransportSink, TransportStream};