Return all servers with their current status (including those that are not connected).
(&self)
| 688 | /// Return all servers with their current status (including those that |
| 689 | /// are not connected). |
| 690 | pub async fn list_with_status(&self) -> Vec<(String, McpStatus)> { |
| 691 | self.statuses |
| 692 | .read() |
| 693 | .await |
| 694 | .iter() |
| 695 | .map(|(k, v)| (k.clone(), v.clone())) |
| 696 | .collect() |
| 697 | } |
| 698 | |
| 699 | async fn log_event(&self, name: &str, message: impl Into<String>) { |
| 700 | let line = format!("[{}] {}", Utc::now().to_rfc3339(), message.into()); |