(
state: State<'_, AppState>,
connection_id: String,
)
| 144 | |
| 145 | #[tauri::command] |
| 146 | pub async fn ssh_disconnect( |
| 147 | state: State<'_, AppState>, |
| 148 | connection_id: String, |
| 149 | ) -> Result<(), String> { |
| 150 | let manager = state.get_ssh_manager_async().await?; |
| 151 | manager |
| 152 | .disconnect(&connection_id) |
| 153 | .await |
| 154 | .map_err(|e| e.to_string()) |
| 155 | } |
| 156 | |
| 157 | #[tauri::command] |
| 158 | pub async fn ssh_disconnect_all(state: State<'_, AppState>) -> Result<(), String> { |
nothing calls this directly
no test coverage detected