peak result
This is a simple trait that extends the standard Result enum to allow you to run some code in case of error or success.
This crate exists because I find it annoying that it's needed to use map_err or map so that I can log the results from my functions. However, maybe people find this issue annoying too, and wish to extend upon this basic functionality that peak-error provides.
Usage
Quickstart
[]
= "1.0.1"
use Peak;
async
Contribuiting
Take a look at our contributing guide if you wish to contribute.
License
This project is licensed under the MIT license.
- MIT license (LICENSE or http://opensource.org/licenses/MIT)
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in peak-result by you, shall be licensed as MIT, without any additional terms or conditions.