pub struct WebSocketManager { /* private fields */ }Expand description
Enhanced WebSocket handler with subscription management.
Implementations§
Source§impl WebSocketManager
impl WebSocketManager
Sourcepub fn new(monitoring: Arc<MonitoringService>) -> Self
pub fn new(monitoring: Arc<MonitoringService>) -> Self
Create a new WebSocket manager.
Sourcepub fn state(&self) -> WebSocketState
pub fn state(&self) -> WebSocketState
Get WebSocket state.
Sourcepub fn broadcast(&self, event: WorkflowEvent)
pub fn broadcast(&self, event: WorkflowEvent)
Broadcast an event.
Sourcepub fn subscriber_count(&self) -> usize
pub fn subscriber_count(&self) -> usize
Get subscriber count.
Auto Trait Implementations§
impl !RefUnwindSafe for WebSocketManager
impl !UnwindSafe for WebSocketManager
impl Freeze for WebSocketManager
impl Send for WebSocketManager
impl Sync for WebSocketManager
impl Unpin for WebSocketManager
impl UnsafeUnpin for WebSocketManager
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