pub struct EventBus { /* private fields */ }Expand description
Event bus for broadcasting data events
Uses tokio::broadcast for multi-consumer support. TUI subscribes for redraw triggers, Web uses for SSE push.
Implementations§
Source§impl EventBus
impl EventBus
Sourcepub fn default_capacity() -> Self
pub fn default_capacity() -> Self
Create with default capacity (256 events)
Sourcepub fn subscriber_count(&self) -> usize
pub fn subscriber_count(&self) -> usize
Get current number of active subscribers
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventBus
impl RefUnwindSafe for EventBus
impl Send for EventBus
impl Sync for EventBus
impl Unpin for EventBus
impl UnwindSafe for EventBus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more