P3KI / bendy

A rust library for encoding and decoding bencode with enforced cannonicalization rules.
BSD 3-Clause "New" or "Revised" License
75 stars 14 forks source link

Allow Custom Errors in State Tracker #17

Closed 0ndorio closed 5 years ago

0ndorio commented 5 years ago

This will introduce a generic error type to the state tracker data structure and use this one to remove the internal StructureError from the public api. This allows us to use the new high level error types inside the encoding callbacks without the fear of losing information in case an implementation detail related error appears.