zzeroo / libmodbus-rs

Libmodbus bindings for Rust
http://zzeroo.github.io/libmodbus-rs/
GNU Lesser General Public License v2.1
10 stars 5 forks source link

Make the API more "rustful" #7

Closed TheBiggerGuy closed 6 years ago

TheBiggerGuy commented 6 years ago

Update the modbus.rs API to make it more "rustful" by:

This is the start of the work I would like to do and not yet completed. I am seeking comments of what you think about the API change?

zzeroo commented 6 years ago

This is definitive a step in the right direction. The changes look good for me.

Could you please select the development branch for your pull requests. Please look at https://github.com/zzeroo/libmodbus-rs/blob/master/CONTRIBUTING.md for the basic rules :)