favent

Crates.iofavent
lib.rsfavent
version0.1.0
sourcesrc
created_at2023-03-27 14:18:31.474997
updated_at2023-03-27 14:18:31.474997
descriptionAn event system inspired by QSL/FAPI
homepage
repositoryhttps://github.com/DM-Earth/Favent
max_upload_size
id822203
size41,819
Yjn024 (JieningYu)

documentation

README

Favent

This is an QSL/FAPI events inspired event system for Rust.

Usage

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.

Callbacks

You need callbacks to listen for events. When registering a callback into an event, you need to provide a phase id for implementing ordering.

Phases

Favent use phases to order callbacks. You need to order the phases when creating an event.

Commit count: 7

cargo fmt