pub struct WsConnectionRegistry { /* private fields */ }Implementations§
Source§impl WsConnectionRegistry
impl WsConnectionRegistry
pub fn new() -> Self
pub fn insert(&self, key: String, tx: Sender<WsMessage>)
pub fn remove(&self, key: &str)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn snapshot_senders(&self) -> Vec<Sender<WsMessage>>
pub fn get_senders_for_keys(&self, keys: &[String]) -> Vec<Sender<WsMessage>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsConnectionRegistry
impl !RefUnwindSafe for WsConnectionRegistry
impl Send for WsConnectionRegistry
impl Sync for WsConnectionRegistry
impl Unpin for WsConnectionRegistry
impl UnsafeUnpin for WsConnectionRegistry
impl UnwindSafe for WsConnectionRegistry
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