summaryrefslogtreecommitdiff
path: root/tor-rtcompat/src/timer.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add a conversion from TimeoutError to IoError.Nick Mathewson2021-05-211-0/+6
|
* Split mocking parts of rtcompat into new rtmock crate.Nick Mathewson2021-05-031-167/+1
| | | | | Since these parts are testing-only, let's take steps to make sure we don't ship them in production by accident.
* Remove most pin_project usage in tor_rtcompat.Nick Mathewson2021-04-281-7/+5
|
* 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).
* Add a yield_now() call to MockSleepProvider::advance()Nick Mathewson2021-04-211-9/+8
| | | | | | | | This is almost always what we want for testing: the task that is advancing time wants to give the other tasks a chance to run. Doing this turns MockSleepProvider::advance() into an async function.
* Tests for sleep_until_wallclock.Nick Mathewson2021-04-201-6/+175
|
* Add "now" functions to SleepProvider.Nick Mathewson2021-04-191-1/+1
|
* rtcompat: mark some outputs as must-use.Nick Mathewson2021-04-191-0/+2
|
* tor_rtcompat: Documentation and cleanupsNick Mathewson2021-04-171-22/+91
|
* Remove need for async_trait in SleepProviderExtNick Mathewson2021-04-171-11/+42
|
* Move timer functions into an extension trait.Nick Mathewson2021-04-171-0/+107