Total active shape subscriptions across all sessions.
(&self)
| 175 | |
| 176 | /// Total active shape subscriptions across all sessions. |
| 177 | pub fn total_shapes(&self) -> usize { |
| 178 | let sessions = |
| 179 | crate::control::lock_utils::read_or_recover(self.sessions.read(), "shape_sessions"); |
| 180 | sessions.values().map(|c| c.shapes.len()).sum() |
| 181 | } |
| 182 | |
| 183 | /// Number of sessions with active shapes. |
| 184 | pub fn active_sessions(&self) -> usize { |
nothing calls this directly
no test coverage detected