| Crates.io | status |
| lib.rs | status |
| version | 0.0.10 |
| created_at | 2019-11-24 02:49:30.996797+00 |
| updated_at | 2019-11-26 02:12:44.680044+00 |
| description | Error container |
| homepage | |
| repository | https://github.com/epage/status |
| max_upload_size | |
| id | 183848 |
| size | 45,017 |
Status: AnErrorcontainer for Rust.
An Error container lowers the overhead for reporting the status via Result<_, E>.
Unlike the error-wrapping pattern found in cargo and generalized in anyhow, the pattern
implemented in Status comes from some proprietary C++ projects which try to address the
following requirements:
Kind of status and the metadata, or Context, of
the status.Context to be built gradually when unwinding and a function has relevant information to
add.These requirements are addressed by trading off some usability due to having a more
cookie-cutter approach to error messages. The Kind serves as a static description of the
error that comes from a general, fixed collection. Describing the exact problem and tailored
remediation is the responsibility of the Context which is generally key-value pairs.
For more, see docs.rs/status.
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.