Trait tokio_modbus::client::sync::Writer
source · pub trait Writer: Client {
// Required methods
fn write_single_coil(&mut self, addr: Address, coil: bool) -> Result<()>;
fn write_multiple_coils(
&mut self,
addr: Address,
coils: &[bool],
) -> Result<()>;
fn write_single_register(&mut self, addr: Address, word: u16) -> Result<()>;
fn write_multiple_registers(
&mut self,
addr: Address,
words: &[u16],
) -> Result<()>;
}Expand description
A transport independent synchronous writer trait.
The synchronous counterpart of the asynchronous Writer trait.