INNER CODE UNIT · Rust
call
slowtec/tokio-modbus · src/client/mod.rs:25
async fn call(&mut self, request: Request<'_>) -> Result<Response>;
/// Disconnects the client.
///
/// Permanently disconnects the client by shutting down the
/// underlying stream in a graceful manner (`AsyncDrop`).
///
/// Dropping the client without explicitly disconnecting it
/// beforehand should also work and free all resources. The
/// actual behavior might depend on the underlying transport
/// protocol (RTU/TCP) that is used by the client.
async fn disconnect(&mut self) -> io::Result<()>;
}
/// Asynchronous _Modbus_ reader
#[async_trait]
pub trait Reader: Client {
/// Read multiple coils (0x01)