Get all shape IDs for a session.
(&self, session_id: &str)
| 100 | |
| 101 | /// Get all shape IDs for a session. |
| 102 | pub fn shapes_for_session(&self, session_id: &str) -> Vec<ShapeId> { |
| 103 | let sessions = |
| 104 | crate::control::lock_utils::read_or_recover(self.sessions.read(), "shape_sessions"); |
| 105 | sessions |
| 106 | .get(session_id) |
| 107 | .map(|c| c.shapes.keys().cloned().collect()) |
| 108 | .unwrap_or_default() |
| 109 | } |
| 110 | |
| 111 | /// Evaluate a mutation against all active shapes. |
| 112 | /// |
nothing calls this directly
no test coverage detected