(&mut self, id: &str)
| 86 | } |
| 87 | |
| 88 | pub fn get_mut(&mut self, id: &str) -> Result<&mut Session, WebDriverErrorResponse> { |
| 89 | self.sessions |
| 90 | .get_mut(id) |
| 91 | .ok_or_else(|| WebDriverErrorResponse::invalid_session_id(id)) |
| 92 | } |
| 93 | |
| 94 | pub fn delete(&mut self, id: &str) -> bool { |
| 95 | self.sessions.remove(id).is_some() |
no outgoing calls