summaryrefslogtreecommitdiff
path: root/crates/tor-cell/src/err.rs
Commit message (Collapse)AuthorAgeFilesLines
* proto: Convert MsgHandler API to expect a message, not a cell.Nick Mathewson2023-06-121-0/+4
| | | | Closes #887.
* tor-cell: Make encoding method signatures fallible.Nick Mathewson2022-07-111-0/+7
|
* tor-cell: convert BytesErr to a struct variantNick Mathewson2022-06-221-4/+13
|
* tor-cell: error usefulness and style fixesNick Mathewson2022-06-221-9/+9
|
* Do not include error source() in display() format.Nick Mathewson2022-06-211-3/+3
| | | | | | | | | According to doc/Errors.md, and in keeping with current best practices, we should not include display an error's `source()` as part of that error's display method. Instead, we should let the caller decide to call source() and display that error in turn. Part of #323.
* Update tor-cell errors to latest APINick Mathewson2022-02-151-4/+4
|
* tor-cell: provide HasKind.Nick Mathewson2022-02-151-8/+15
| | | | | | | | | Additionally, refactor the IoError out of tor_cell::Error: nothing in TorCell created this; it was only used by tor_proto. This required refactoring in tor_proto to use a new error type. Here I decided to use a new CodecError for now, though we may refactor that away soon too.
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+38
This will cause some pain for now, but now is really the best time to do this kind of thing.