-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 (?)
- Loading branch information
Showing
5 changed files
with
589 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.