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

Structs

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

Traits

  • Implement for event handler

Type Definitions

Attribute Macros