use-event-handler
Synchronous event handler trait for RustUse event primitives.
Install
[]
= "0.1.0"
Example
use Infallible;
use EventHandler;
let handler = ;
assert_eq!;
Scope
- Define a small synchronous handler trait.
- Support closures and functions through a blanket implementation.
- Keep output and error types caller-defined.
Non-Goals
- No async runtime.
- No scheduling, queueing, or dispatch loop.
- No middleware or framework behavior.
Status
Experimental v0.1.0 primitive.
License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license