Get a session by ID
(&self, session_id: &str)
| 333 | |
| 334 | /// Get a session by ID |
| 335 | pub async fn get_session(&self, session_id: &str) -> TerminalResult<SessionResponse> { |
| 336 | let session = self |
| 337 | .session_manager |
| 338 | .get_session(session_id) |
| 339 | .await |
| 340 | .ok_or_else(|| TerminalError::SessionNotFound(session_id.to_string()))?; |
| 341 | |
| 342 | Ok(SessionResponse::from(session)) |
| 343 | } |
| 344 | |
| 345 | /// List all sessions |
| 346 | pub async fn list_sessions(&self) -> TerminalResult<Vec<SessionResponse>> { |
no outgoing calls
no test coverage detected