(&mut self, session_id: &str)
| 2897 | } |
| 2898 | |
| 2899 | fn ensure_session_view(&mut self, session_id: &str) { |
| 2900 | if self.active_session_id.as_deref() == Some(session_id) { |
| 2901 | return; |
| 2902 | } |
| 2903 | |
| 2904 | self.active_session_id = Some(session_id.to_string()); |
| 2905 | self.session_view = Some(SessionView::new( |
| 2906 | self.context.clone(), |
| 2907 | session_id.to_string(), |
| 2908 | )); |
| 2909 | } |
| 2910 | |
| 2911 | fn cache_session_from_api(&self, session: &SessionInfo) { |
| 2912 | let mut session_ctx = self.context.session.write(); |
no test coverage detected