event-notify
English | 简体中文
event-notify provides a lightweight event listener/notification chain implementation. Create events with chained listeners where each listener can process or forward the event.
No external dependencies required — pure Rust standard library.
Features
- Lightweight event listener pattern
- Chained listeners via
Nextforwarding - Fire events with arbitrary payload and return types
- Zero dependencies
Cargo Feature Flags
This crate has no Cargo feature flags. All functionality is enabled by default.
Basic Usage
use Event;
let event = listen.finish;
let result = event.fire;
assert_eq!;
Tests
7 tests covering single listener, chained listeners, chain break, and multiple fire scenarios.
License
Licensed under either of Apache License 2.0 or MIT license at your option.