Expand description
Transport abstraction (spec §32.2). Implementations wrap a Modbus client
(see moddef-tokio-modbus) or an in-memory register map for tests.
Design notes:
- Native async-fn-in-trait; no
async_traitbox.no_std-compatible. &mut selfon every method: a Modbus connection is a serial request/response channel, so the borrow checker enforces one in-flight request per transport.- Reads fill caller buffers (
&mut [u16]/&mut [bool]) so the core never allocates; the requested count isout.len().
Traits§
- Transport
- Async register-level transport.
offsetis the zero-based data-model offset within the given address space (spec §7.2); implementations apply any unit/base-address mapping.