Separate the error types #31
Labels
A-battery
Area: battery crate
A-battery-ffi
Area: battery-ffi crate
C-enhancement
New feature or request
Milestone
This
battop
issue had introduced the case, when theBattery
struct instance can represent the missing device. While it is possible now to handle that case (see #29), this kind of error seems to be a recoverable type of error for library users (mostly to thebattop
at the moment), because it can be handled (for example, by removing the device from the batteries list).battery::Error
can be reworked as anenum
with the "recoverable" and "non-recoverable" members, smth like this:The text was updated successfully, but these errors were encountered: