(&self, id: &str)
| 129 | } |
| 130 | |
| 131 | pub async fn remove(&self, id: &str) -> Result<()> { |
| 132 | self.http_request("DELETE", &format!("/remove/{}", id), ()) |
| 133 | .await |
| 134 | } |
| 135 | |
| 136 | pub async fn list(&self) -> Result<Vec<ProcessInfo>> { |
| 137 | self.http_get("/list").await |