pub trait ModbusParam: Sized {
type ProtocolType;
const ADDRESS: u16;
const QUANTITY: u16;
}Expand description
A trait for defining Modbus parameters.
This trait provides a common interface for defining the properties of a Modbus register, such as its address, the number of words it occupies, and the data type it represents.
Required Associated Constants§
Required Associated Types§
Sourcetype ProtocolType
type ProtocolType
The data type that the Modbus words represent (e.g., f32, u16).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.