Skip to main content

Crate wae_event

Crate wae_event 

Source
Expand description

WAE Event - 事件驱动模块

提供统一的事件驱动能力抽象,支持事件发布/订阅、事件存储和事件回放。

深度融合 tokio 运行时,所有 API 都是异步优先设计。 微服务架构友好,支持事件溯源、CQRS 等模式。

Structs§

AsyncEventHandler
异步事件处理器包装器
BaseEvent
基础事件实现
EventBus
事件总线
EventBusConfig
事件总线配置
EventData
事件数据封装
InMemoryEventStore
内存事件存储
MetadataEventFilter
元数据事件过滤器
Subscription
订阅句柄
SyncEventHandlerWrapper
同步事件处理器包装器
TypeEventFilter
类型事件过滤器

Traits§

Event
事件基础 trait
EventFilter
事件过滤器 trait
EventHandler
事件处理器 trait (异步)
EventStore
事件存储 trait
SyncEventHandler
同步事件处理器 trait

Functions§

event_bus
便捷函数:创建事件总线
event_bus_with_store
便捷函数:创建带存储的事件总线
memory_event_store
便捷函数:创建内存事件存储

Type Aliases§

EventId
事件 ID 类型
EventTypeName
事件类型名称
SubscriptionId
订阅 ID 类型