Crate basu

Source
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§

error
basu error
event
basu event

Structs§

EventBus
An asynchronous EventBus to interact with.
HandlerId
HandlerId is the key in HandlerMap hash map.

Traits§

Handle
Implement for event handler

Type Aliases§

EventHandlerMap
Event Handler map
Handler
Handler
HandlerMap
Handler map with Id

Attribute Macros§

async_trait