Trait tokio_modbus::client::sync::Reader
source · pub trait Reader: Client {
// Required methods
fn read_coils(&mut self, addr: Address, cnt: Quantity) -> Result<Vec<bool>>;
fn read_discrete_inputs(
&mut self,
addr: Address,
cnt: Quantity,
) -> Result<Vec<bool>>;
fn read_input_registers(
&mut self,
addr: Address,
cnt: Quantity,
) -> Result<Vec<u16>>;
fn read_holding_registers(
&mut self,
addr: Address,
cnt: Quantity,
) -> Result<Vec<u16>>;
fn read_write_multiple_registers(
&mut self,
read_addr: Address,
read_count: Quantity,
write_addr: Address,
write_data: &[u16],
) -> Result<Vec<u16>>;
}Expand description
A transport independent synchronous reader trait.
The synchronous counterpart of the asynchronous Reader trait.