pub struct WsCoordinator { /* private fields */ }Implementations§
Source§impl WsCoordinator
impl WsCoordinator
pub fn new() -> Self
pub fn subscribe(&self, session_id: &str, client_id: &str)
pub fn unsubscribe(&self, session_id: &str, client_id: &str)
pub fn broadcast(&self, session_id: &str) -> Vec<String>
pub fn subscriber_count(&self, session_id: &str) -> usize
pub fn active_sessions(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WsCoordinator
impl RefUnwindSafe for WsCoordinator
impl Send for WsCoordinator
impl Sync for WsCoordinator
impl Unpin for WsCoordinator
impl UnsafeUnpin for WsCoordinator
impl UnwindSafe for WsCoordinator
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