1 2 3 4 5 6 7 8 9 10 11 12 13
// Copyright (c) 2025-2026 Kirky.X🌠 // SPDX-License-Identifier: Apache-2.0 //! 事件总线模块 //! //! 提供进程内事件发布/订阅机制,解耦模块间通信。 //! 基于 `tokio::sync::broadcast` 实现,零新外部依赖。 pub mod broadcast; pub mod event_bus; pub use broadcast::BroadcastEventBus; pub use event_bus::{DomainEvent, EventBus, EventBusError};