Trait libmodbus_rs::ModbusServer [] [src]

pub trait ModbusServer {
    fn receive(&self, request: &mut [u8]) -> Result<i32, Error>;
fn reply(
        &self,
        request: &[u8],
        request_len: i32,
        modbus_mapping: &ModbusMapping
    ) -> Result<i32, Error>; }

The server is waiting for request from clients and must answer when it is concerned by the request. The libmodbus offers the following functions to handle requests:

Required Methods

Implementors