Expand description
§A Tour of Basu
Basu is a crate designed to enable event-driven architectures in Rust applications with ease and flexibility.
§Features:
-
Support for both asynchronous and synchronous event handling. Choose the approach that best fits your application’s needs.
-
Provides an abstraction for representing events, allowing you to define custom event structures with payload data.
-
Well-defined error types and error handling mechanisms for reliable event bus operations.
To enable the synchronous event handling capability, use the sync
feature:
[dependencies]
basu = { version = "0.1.0", default-features = false, features = ["sync"] }
To enable the asynchronous event handling capability, use the async
feature:
[dependencies]
basu = "0.1.0"
Modules§
Structs§
- Event
Bus - An asynchronous
EventBus
to interact with. - Handler
Id - HandlerId is the key in
HandlerMap
hash map.
Traits§
- Handle
- Implement for event handler
Type Aliases§
- Event
Handler Map - Event Handler map
- Handler
- Handler
- Handler
Map - Handler map with Id