summaryrefslogtreecommitdiff
path: root/tor-dirclient/src/err.rs
Commit message (Collapse)AuthorAgeFilesLines
* Enforce (and obey) clippy lints about exhaustive enums, structs.Nick Mathewson2021-04-271-0/+1
| | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change).
* Move timer functions into an extension trait.Nick Mathewson2021-04-171-1/+1
|
* Replace tor-decompress with async-compression crate.Nick Mathewson2021-04-131-3/+3
| | | | This lets us simplify tor-dirclient a fair bit. Closes #79.
* Fix Rust-1.51 clippy warnings about acronyms in camel case.Nick Mathewson2021-03-291-1/+1
| | | | This is painful, but we shouldn't have to do it again.
* Refactor errors in tor-decompress and tor-dirclient.Nick Mathewson2021-03-241-5/+31
| | | | | This lets us reinstate the code in dirclient that retired circuits depending on the error type.
* tor-dirclient: add timeoutsNick Mathewson2020-12-011-0/+11
| | | | | | | | This adds two timeouts in total: one for sending begin, and getting headers, and one for getting the rest of the data. These timeouts are way too long right now, but at least the code is there.
* Implement a maximum length for directory responsesNick Mathewson2020-11-251-0/+4
|
* Better error types for tor-dirclientNick Mathewson2020-11-251-0/+23