Expand description
WAE Event - 事件驱动模块
提供统一的事件驱动能力抽象,支持事件发布/订阅、事件存储和事件回放。
深度融合 tokio 运行时,所有 API 都是异步优先设计。 微服务架构友好,支持事件溯源、CQRS 等模式。
Structs§
- Async
Event Handler - 异步事件处理器包装器
- Base
Event - 基础事件实现
- Event
Bus - 事件总线
- Event
BusConfig - 事件总线配置
- Event
Data - 事件数据封装
- InMemory
Event Store - 内存事件存储
- Metadata
Event Filter - 元数据事件过滤器
- Subscription
- 订阅句柄
- Sync
Event Handler Wrapper - 同步事件处理器包装器
- Type
Event Filter - 类型事件过滤器
Traits§
- Event
- 事件基础 trait
- Event
Filter - 事件过滤器 trait
- Event
Handler - 事件处理器 trait (异步)
- Event
Store - 事件存储 trait
- Sync
Event Handler - 同步事件处理器 trait
Functions§
- event_
bus - 便捷函数:创建事件总线
- event_
bus_ with_ store - 便捷函数:创建带存储的事件总线
- memory_
event_ store - 便捷函数:创建内存事件存储
Type Aliases§
- EventId
- 事件 ID 类型
- Event
Type Name - 事件类型名称
- Subscription
Id - 订阅 ID 类型