Commit 6319d81
authored
Add opt-in handlers for before sleeping and before handling events (#144)
* Add opt-in handlers for before sleeping and before handling events
* Remove pre_run and fix some missed impls
* Appease the great 📎
* Use an associated constant instead
* Do the borrow outside the loop
* Fix cfged out mistake
* Update documentation to reflect changes
* Actually use the synthetic events
* Add some tests for the new functionality
* Pin `nix` to a lower version
* Rename `before_will_sleep` to `before_sleep`
* Add some more coverage
* Solve review comments
* Restore inconsistencies in formatting
* Remove AdditionalLifetimeEventsRegister
* Remove unused lifetime
* Unencapsulate the refcell
* Address review comments
* Exclude synthetic events from the iterator
* Follow clippy's improvement (?)1 parent d468cc9 commit 6319d81
5 files changed
+589
-131
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
240 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
241 | 248 | | |
242 | 249 | | |
243 | 250 | | |
244 | 251 | | |
245 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
246 | 258 | | |
247 | 259 | | |
248 | 260 | | |
249 | 261 | | |
250 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
251 | 268 | | |
252 | 269 | | |
253 | 270 | | |
254 | 271 | | |
255 | 272 | | |
256 | 273 | | |
257 | 274 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 275 | + | |
| 276 | + | |
263 | 277 | | |
| 278 | + | |
264 | 279 | | |
265 | 280 | | |
266 | 281 | | |
| |||
0 commit comments