Skip to main content

Crate rustmod_datalink

Crate rustmod_datalink 

Source
Expand description

Async Modbus transport abstraction layer.

This crate provides the DataLink trait that abstracts over TCP and RTU transports, along with concrete implementations:

Enable the rtu feature for serial RTU support via tokio-serial.

Re-exports§

pub use server::ModbusRtuOverTcpServer;
pub use server::ModbusService;
pub use server::ModbusTcpServer;
pub use server::ServiceError;
pub use sim::CoilBank;
pub use sim::InMemoryModbusService;
pub use sim::InMemoryPointModel;
pub use sim::RegisterBank;

Modules§

server
sim

Structs§

ModbusTcpTransport
Modbus TCP client transport implementing the DataLink trait.
UnitId
A Modbus unit identifier (station address).

Enums§

DataLinkError
Errors that can occur during a transport-level operation.

Traits§

DataLink
Async transport abstraction for Modbus request/response exchanges.