| 69 | /// Implementation is very naïve. |
| 70 | #[derive(Debug)] |
| 71 | pub struct ChatServer { |
| 72 | sessions: HashMap<u64, Recipient<Message>>, |
| 73 | rooms: HashMap<String, HashSet<u64>>, |
| 74 | visitor_count: Arc<AtomicUsize>, |
| 75 | } |
| 76 | |
| 77 | impl ChatServer { |
| 78 | pub fn new(visitor_count: Arc<AtomicUsize>) -> ChatServer { |
nothing calls this directly
no outgoing calls
no test coverage detected