slowtec / tokio-modbus

A tokio-based modbus library
Apache License 2.0
379 stars 117 forks source link

POC: Add new `Error` type for the public API #231

Closed benjamin-nw closed 6 months ago

benjamin-nw commented 6 months ago

This PR is a PoC to show an implementation with an Error and a Result type for the tokio-modbus crate.

The goal of the PoC is to test if updating the std::io::Error into a crate::error::Error can be an effective solution to better handle Exception returned by a modbus server.

Working examples:

Please, feel free to review this PR anytime.