aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-bytes/src/writer.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix some rustdoc errors.Nick Mathewson2022-10-131-4/+1
| | | | | | In addition to the usual "You named that method wrong!" errors, we have a new rustdoc error that complains about bogus "HTML tags" that are actually unquoted usage of types like `Result<Foo>`.
* Remove the last vestiges of write_infallible.Nick Mathewson2022-07-111-12/+4
| | | | | Now that everything has been converted to fallible writers, we get to finally remove write_infallible() from tor_bytes.
* Remove "write_and_consume_infallible".Nick Mathewson2022-07-111-9/+3
| | | | | | There were only a few of these. Removing it required porting everything to use `write_and_consume` instead, and handling its (potential) errors.
* Convert each write_onto_infallible implementation into write_onto.Nick Mathewson2022-07-111-1/+2
|
* Define new write_into and write_onto methods with correct APIs.Nick Mathewson2022-07-111-0/+20
|
* Rename "write" methods on tor-bytes to "write_infallible".Nick Mathewson2022-07-111-10/+10
| | | | | | | | | | | | | | | This comprises four renames: ``` write_onto -> write_onto_infallible write_into -> write_into_infallible write -> write_infallible writer_and_consume -> write_and_consume_infallible. ``` The rest of this branch will be concerned with replacing these `_infallible` methods with ones that return a `Result`. This is part of #513.
* Add a Bug variant to tor-bytes::EncodeError.Nick Mathewson2022-07-111-1/+4
| | | | This will help down the line as we make more writers fallible.
* tor-bytes: Split EncodeError from ErrorNick Mathewson2022-06-231-4/+4
| | | | | | | | | | | Since there is currently only one error type that can occur when encoding, it doesn't make sense to use the full Error type here. This split will help us downstream, as we no longer need to categorize tor_bytes::Error as "an error in encoding or decoding". I considered renaming Error to DecodeError, but that had pretty huge downstream effects, and didn't seem to be worth it.
* tor-bytes: Provide nested writersIan Jackson2022-06-091-1/+116
|
* tor-bytes: Provide nested readersIan Jackson2022-06-091-0/+1
|
* tor-bytes: Reader: Provide take_restIan Jackson2022-06-091-0/+1
| | | | We'll want this in a moment.
* add semicolons if nothing returnedDaniel Eades2021-11-251-8/+8
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+133
This will cause some pain for now, but now is really the best time to do this kind of thing.