| Crates.io | favent |
| lib.rs | favent |
| version | 0.1.0 |
| created_at | 2023-03-27 14:18:31.474997+00 |
| updated_at | 2023-03-27 14:18:31.474997+00 |
| description | An event system inspired by QSL/FAPI |
| homepage | |
| repository | https://github.com/DM-Earth/Favent |
| max_upload_size | |
| id | 822203 |
| size | 41,819 |
This is an QSL/FAPI events inspired event system for Rust.
Event is a place storing callbacks for this event with phases and an invoker with a default implementation. To create an event, use new or new_default functions in the Event struct.
Please check the test module for examples.
You need callbacks to listen for events. When registering a callback into an event, you need to provide a phase id for implementing ordering.
Favent use phases to order callbacks. You need to order the phases when creating an event.